Make WordPress Core


Ignore:
Timestamp:
11/09/2019 01:41:29 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the documentation placement for wp_print_styles and shortcode_atts_{$shortcode} hooks.

Props jrf.
See #48255.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/shortcodes.php

    r46554 r46688  
    559559        }
    560560    }
    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
    575562    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         */
    576577        $out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode );
    577578    }
Note: See TracChangeset for help on using the changeset viewer.