Make WordPress Core

Changeset 8613


Ignore:
Timestamp:
08/11/2008 04:00:33 AM (15 years ago)
Author:
ryan
Message:

Pass tag name when using shortcodes. Props Viper007Bond. fixes #6606

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/shortcodes.php

    r8600 r8613  
    189189    if ( isset($m[4]) ) {
    190190        // enclosing tag - extra parameter
    191         return call_user_func($shortcode_tags[$tag], $attr, $m[4]);
     191        return call_user_func($shortcode_tags[$tag], $attr, $m[4], $tag);
    192192    } else {
    193193        // self-closing tag
    194         return call_user_func($shortcode_tags[$tag], $attr);
     194        return call_user_func($shortcode_tags[$tag], $attr, NULL, $tag);
    195195    }
    196196}
Note: See TracChangeset for help on using the changeset viewer.