WordPress.org

Make WordPress Core

Changeset 10658


Ignore:
Timestamp:
02/27/09 17:01:59 (5 years ago)
Author:
westi
Message:

Fix regression in shortcode behaviour. Fixes #9238 props tellyworth.

File:
1 edited

Legend:

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

    r10576 r10658  
    203203    if ( isset($m[5]) ) { 
    204204        // enclosing tag - extra parameter 
    205         return $m[1] . call_user_func($shortcode_tags[$tag], $attr, $m[5]) . $m[6];  
     205        return $m[1] . call_user_func($shortcode_tags[$tag], $attr, $m[5], $m[2]) . $m[6]; 
    206206    } else { 
    207207        // self-closing tag 
    208         return $m[1] . call_user_func($shortcode_tags[$tag], $attr) . $m[6]; 
     208        return $m[1] . call_user_func($shortcode_tags[$tag], $attr, NULL, $m[2]) . $m[6]; 
    209209    } 
    210210} 
Note: See TracChangeset for help on using the changeset viewer.