Changeset 32867 for trunk/src/wp-includes/shortcodes.php
- Timestamp:
- 06/19/2015 09:32:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r32624 r32867 89 89 function add_shortcode($tag, $func) { 90 90 global $shortcode_tags; 91 92 if ( is_callable($func) ) 93 $shortcode_tags[$tag] = $func; 91 $shortcode_tags[ $tag ] = $func; 94 92 } 95 93 … … 283 281 $attr = shortcode_parse_atts( $m[3] ); 284 282 283 if ( ! is_callable( $shortcode_tags[ $tag ] ) ) { 284 $message = sprintf( __( 'Attempting to parse a shortcode without a valid callback: %s' ), $tag ); 285 _doing_it_wrong( __FUNCTION__, $message, '4.3.0' ); 286 return $m[0]; 287 } 288 285 289 if ( isset( $m[5] ) ) { 286 290 // enclosing tag - extra parameter
Note: See TracChangeset
for help on using the changeset viewer.