Docs: Correct the documentation placement for `wp_print_styles` and `shortcode_atts_{$shortcode}` hooks.
Props jrf. See #48255. Built from https://develop.svn.wordpress.org/trunk@46688 git-svn-id: http://core.svn.wordpress.org/trunk@46488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0e79d4d101
commit
6ed1a7b615
|
@ -43,12 +43,13 @@ function wp_print_styles( $handles = false ) {
|
||||||
if ( '' === $handles ) { // for wp_head
|
if ( '' === $handles ) { // for wp_head
|
||||||
$handles = false;
|
$handles = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! $handles ) {
|
||||||
/**
|
/**
|
||||||
* Fires before styles in the $handles queue are printed.
|
* Fires before styles in the $handles queue are printed.
|
||||||
*
|
*
|
||||||
* @since 2.6.0
|
* @since 2.6.0
|
||||||
*/
|
*/
|
||||||
if ( ! $handles ) {
|
|
||||||
do_action( 'wp_print_styles' );
|
do_action( 'wp_print_styles' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -558,6 +558,8 @@ function shortcode_atts( $pairs, $atts, $shortcode = '' ) {
|
||||||
$out[ $name ] = $default;
|
$out[ $name ] = $default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $shortcode ) {
|
||||||
/**
|
/**
|
||||||
* Filters a shortcode's default attributes.
|
* 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 array $atts The user defined shortcode attributes.
|
||||||
* @param string $shortcode The shortcode name.
|
* @param string $shortcode The shortcode name.
|
||||||
*/
|
*/
|
||||||
if ( $shortcode ) {
|
|
||||||
$out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode );
|
$out = apply_filters( "shortcode_atts_{$shortcode}", $out, $pairs, $atts, $shortcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-46687';
|
$wp_version = '5.4-alpha-46688';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue