Skip to content

Commit

Permalink
fix(filter): setting $tag as optional argument
Browse files Browse the repository at this point in the history
  • Loading branch information
therajumandapati committed Dec 10, 2018
1 parent d19db25 commit a73ac72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions just-rwd-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}
Expand All @@ -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 ) ) {
Expand Down

0 comments on commit a73ac72

Please sign in to comment.