WordPress.org

Make WordPress Core

Ticket #6606: 6606.3.patch

File 6606.3.patch, 583 bytes (added by Viper007Bond, 6 years ago)

Duh, no, pass NULL since it's not set. A blank string would be for [tag]tag.

  • 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, NULL, $tag); 
    9595        } 
    9696} 
    9797