]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/shortcodes.php
Wordpress 3.7
[autoinstalls/wordpress.git] / wp-includes / shortcodes.php
index a40959491bc5f028c8da8465be686b2e4f379488..dafb3a14051b975357154390f8e689265ce4523a 100644 (file)
@@ -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 );