WordPress.org

Make WordPress Core

Ticket #6606: 6606.patch

File 6606.patch, 584 bytes (added by Viper007Bond, 6 years ago)
  • 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, FALSE, $tag); 
    9595        } 
    9696} 
    9797