From c227a3d78a552ea35426f81c8a39b9ef4d794c1f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 13 Sep 2013 09:02:09 +0000 Subject: [PATCH] Inline documentation for hooks in wp-includes/shortcodes.php. props natejacobs. see #25229. Built from https://develop.svn.wordpress.org/trunk@25423 git-svn-id: http://core.svn.wordpress.org/trunk@25348 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/shortcodes.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/wp-includes/shortcodes.php b/wp-includes/shortcodes.php index a40959491b..147f9c5017 100644 --- a/wp-includes/shortcodes.php +++ b/wp-includes/shortcodes.php @@ -338,7 +338,18 @@ function shortcode_atts( $pairs, $atts, $shortcode = '' ) { else $out[$name] = $default; } - + /** + * Filter a shortcode's default attributes. + * + * If the third parameter of the shortcode_atts() function is present then this filter is available. + * The third parameter, $shortcode, is the name of the shortcode. + * + * @since 3.6.0 + * + * @param array $out The output array of shortcode attributes. + * @param array $pairs The supported attributes and their defaults. + * @param array $atts The user defined shortcode attributes. + */ if ( $shortcode ) $out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts );