Make WordPress Core

Ticket #25229: shortcodes.diff

File shortcodes.diff, 819 bytes (added by natejacobs, 11 years ago)

Second pass of wp-includes/shortcodes.php. Thanks @drewapicture

  • wp-includes/shortcodes.php

     
    338338                else
    339339                        $out[$name] = $default;
    340340        }
    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         */
    342353        if ( $shortcode )
    343354                $out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts );
    344355