Make WordPress Core


Ignore:
Timestamp:
03/29/2022 01:26:38 PM (2 years ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

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

    r52989 r53015  
    29272927 * For block themes, it's loaded in the head.
    29282928 * For classic ones, it's loaded in the body
    2929  * because the wp_head action (and wp_enqueue_scripts)
    2930  * happens before the render_block.
     2929 * because the wp_head action happens before
     2930 * the render_block.
    29312931 *
    29322932 * @link https://core.trac.wordpress.org/ticket/53494.
     
    29372937    $action_hook_name = 'wp_footer';
    29382938    if ( wp_is_block_theme() ) {
    2939         $action_hook_name = 'wp_enqueue_scripts';
     2939        $action_hook_name = 'wp_head';
    29402940    }
    29412941    add_action(
Note: See TracChangeset for help on using the changeset viewer.