mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
Editor: Change location of block support styles in wp_head
.
Backports changes from https://github.com/WordPress/gutenberg/pull/39164. Props ndiego, alexstine, cbravobernal, mamaduka. See #55474. Built from https://develop.svn.wordpress.org/trunk@53015 git-svn-id: http://core.svn.wordpress.org/trunk@52604 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1aaf68db85
commit
25fafd4c44
@ -2926,8 +2926,8 @@ function wp_enqueue_global_styles_css_custom_properties() {
|
|||||||
*
|
*
|
||||||
* For block themes, it's loaded in the head.
|
* For block themes, it's loaded in the head.
|
||||||
* For classic ones, it's loaded in the body
|
* For classic ones, it's loaded in the body
|
||||||
* because the wp_head action (and wp_enqueue_scripts)
|
* because the wp_head action happens before
|
||||||
* happens before the render_block.
|
* the render_block.
|
||||||
*
|
*
|
||||||
* @link https://core.trac.wordpress.org/ticket/53494.
|
* @link https://core.trac.wordpress.org/ticket/53494.
|
||||||
*
|
*
|
||||||
@ -2936,7 +2936,7 @@ function wp_enqueue_global_styles_css_custom_properties() {
|
|||||||
function wp_enqueue_block_support_styles( $style ) {
|
function wp_enqueue_block_support_styles( $style ) {
|
||||||
$action_hook_name = 'wp_footer';
|
$action_hook_name = 'wp_footer';
|
||||||
if ( wp_is_block_theme() ) {
|
if ( wp_is_block_theme() ) {
|
||||||
$action_hook_name = 'wp_enqueue_scripts';
|
$action_hook_name = 'wp_head';
|
||||||
}
|
}
|
||||||
add_action(
|
add_action(
|
||||||
$action_hook_name,
|
$action_hook_name,
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.0-alpha-53014';
|
$wp_version = '6.0-alpha-53015';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user