X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/a6f44f0edcda2471c5a33e4156c1c9488c7f3210..refs/tags/wordpress-3.7:/wp-includes/shortcodes.php diff --git a/wp-includes/shortcodes.php b/wp-includes/shortcodes.php index a4095949..dafb3a14 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 );