WordPress.org

Make WordPress Core

Changeset 46688


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

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

Props jrf.
See #48255.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r46660 r46688  
    4444        $handles = false;
    4545    }
    46     /**
    47      * Fires before styles in the $handles queue are printed.
    48      *
    49      * @since 2.6.0
    50      */
     46
    5147    if ( ! $handles ) {
     48        /**
     49         * Fires before styles in the $handles queue are printed.
     50         *
     51         * @since 2.6.0
     52         */
    5253        do_action( 'wp_print_styles' );
    5354    }
  • 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.