Changeset 46688 for trunk/src/wp-includes/shortcodes.php
- Timestamp:
- 11/09/2019 01:41:29 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r46554 r46688 559 559 } 560 560 } 561 /** 562 * Filters a shortcode's default attributes. 563 * 564 * If the third parameter of the shortcode_atts() function is present then this filter is available. 565 * The third parameter, $shortcode, is the name of the shortcode. 566 * 567 * @since 3.6.0 568 * @since 4.4.0 Added the `$shortcode` parameter. 569 * 570 * @param array $out The output array of shortcode attributes. 571 * @param array $pairs The supported attributes and their defaults. 572 * @param array $atts The user defined shortcode attributes. 573 * @param string $shortcode The shortcode name. 574 */ 561 575 562 if ( $shortcode ) { 563 /** 564 * Filters a shortcode's default attributes. 565 * 566 * If the third parameter of the shortcode_atts() function is present then this filter is available. 567 * The third parameter, $shortcode, is the name of the shortcode. 568 * 569 * @since 3.6.0 570 * @since 4.4.0 Added the `$shortcode` parameter. 571 * 572 * @param array $out The output array of shortcode attributes. 573 * @param array $pairs The supported attributes and their defaults. 574 * @param array $atts The user defined shortcode attributes. 575 * @param string $shortcode The shortcode name. 576 */ 576 577 $out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode ); 577 578 }
Note: See TracChangeset
for help on using the changeset viewer.