Make WordPress Core

Ticket #6606: 6606.2.patch

File 6606.2.patch, 581 bytes (added by Viper007Bond, 18 years ago)

Pass a blank string rather than FALSE for the content

  • wp-includes/shortcodes.php

     
    8888
    8989        if ( isset($m[4]) ) {
    9090                // enclosing tag - extra parameter
    91                 return call_user_func($shortcode_tags[$tag], $attr, $m[4]);
     91                return call_user_func($shortcode_tags[$tag], $attr, $m[4], $tag);
    9292        } else {
    9393                // self-closing tag
    94                 return call_user_func($shortcode_tags[$tag], $attr);
     94                return call_user_func($shortcode_tags[$tag], $attr, '', $tag);
    9595        }
    9696}
    9797