From a73ac72f74beac3156d6134b1b04fb0e62d9fe3e Mon Sep 17 00:00:00 2001 From: Raju Mandapati Date: Mon, 10 Dec 2018 08:54:57 -0600 Subject: [PATCH] fix(filter): setting $tag as optional argument --- just-rwd-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/just-rwd-functions.php b/just-rwd-functions.php index 6a45f25..2549b9f 100644 --- a/just-rwd-functions.php +++ b/just-rwd-functions.php @@ -21,7 +21,7 @@ * @param string $tag Specify which tag should be used: picture|img. * @param array $attr Additional html attributes to be used for main tag. */ -function rwd_attachment_image( $attachment = null, $size = 'thumbnail', $tag, $attr = array() ) { +function rwd_attachment_image( $attachment = null, $size = 'thumbnail', $tag = null, $attr = array() ) { if( empty( $tag ) ) { $tag = apply_filters( 'rwd_tag_type', 'picture' ); } @@ -44,7 +44,7 @@ function rwd_attachment_image( $attachment = null, $size = 'thumbnail', $tag, $a * * @return string Generated html. */ -function get_rwd_attachment_image( $attachment = null, $size = 'thumbnail', $tag, $attr = array() ) { +function get_rwd_attachment_image( $attachment = null, $size = 'thumbnail', $tag = null, $attr = array() ) { $rwd_image = new RwdImage( $attachment ); if( empty( $tag ) ) {