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

Props jrf.
See #48255.

git-svn-id: https://develop.svn.wordpress.org/trunk@46688 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-11-09 13:41:29 +00:00
parent 36994ef153
commit 67e82bc32a
2 changed files with 21 additions and 19 deletions

View File

@ -43,12 +43,13 @@ function wp_print_styles( $handles = false ) {
if ( '' === $handles ) { // for wp_head
$handles = false;
}
if ( ! $handles ) {
/**
* Fires before styles in the $handles queue are printed.
*
* @since 2.6.0
*/
if ( ! $handles ) {
do_action( 'wp_print_styles' );
}

View File

@ -558,6 +558,8 @@ function shortcode_atts( $pairs, $atts, $shortcode = '' ) {
$out[ $name ] = $default;
}
}
if ( $shortcode ) {
/**
* Filters a shortcode's default attributes.
*
@ -572,7 +574,6 @@ function shortcode_atts( $pairs, $atts, $shortcode = '' ) {
* @param array $atts The user defined shortcode attributes.
* @param string $shortcode The shortcode name.
*/
if ( $shortcode ) {
$out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode );
}