Ticket #25229: shortcodes.diff
File shortcodes.diff, 819 bytes (added by , 11 years ago) |
---|
-
wp-includes/shortcodes.php
338 338 else 339 339 $out[$name] = $default; 340 340 } 341 341 /** 342 * Filter a shortcode's default attributes. 343 * 344 * If the third parameter of the shortcode_atts function is present then this filter is available. 345 * The third parameter, $shortcode, is the name of the shortcode. 346 * 347 * @since 3.6.0 348 * 349 * @param array $out the output array of shortcode attributes. 350 * @param array $pairs the supported attributes and their defaults. 351 * @param array $atts the user defined shortcode attributes. 352 */ 342 353 if ( $shortcode ) 343 354 $out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts ); 344 355