Changeset 38713 for trunk/src/wp-includes/shortcodes.php
- Timestamp:
- 10/04/2016 12:38:45 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r38506 r38713 340 340 } 341 341 342 if ( isset( $m[5] ) ) { 343 // enclosing tag - extra parameter 344 return $m[1] . call_user_func( $shortcode_tags[$tag], $attr, $m[5], $tag ) . $m[6]; 345 } else { 346 // self-closing tag 347 return $m[1] . call_user_func( $shortcode_tags[$tag], $attr, null, $tag ) . $m[6]; 348 } 342 $content = isset( $m[5] ) ? $m[5] : null; 343 344 $output = $m[1] . call_user_func( $shortcode_tags[ $tag ], $attr, $content, $tag ) . $m[6]; 345 346 /** 347 * Filters the output created by a shortcode callback. 348 * 349 * @since 4.7.0 350 * 351 * @param string $output Shortcode output. 352 * @param string $tag Shortcode name. 353 * @param array $attr Shortcode attributes array, 354 * @param array $m Regular expression match array. 355 */ 356 return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m ); 349 357 } 350 358
Note: See TracChangeset
for help on using the changeset viewer.