Make WordPress Core

Changeset 53017


Ignore:
Timestamp:
03/29/2022 01:47:15 PM (3 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.
Merges [53015] to the 5.9 branch.
See #55474.

Location:
branches/5.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9

  • branches/5.9/src/wp-includes/script-loader.php

    r52845 r53017  
    29262926 * For block themes, it's loaded in the head.
    29272927 * For classic ones, it's loaded in the body
    2928  * because the wp_head action (and wp_enqueue_scripts)
    2929  * happens before the render_block.
     2928 * because the wp_head action happens before
     2929 * the render_block.
    29302930 *
    29312931 * @link https://core.trac.wordpress.org/ticket/53494.
     
    29362936    $action_hook_name = 'wp_footer';
    29372937    if ( wp_is_block_theme() ) {
    2938         $action_hook_name = 'wp_enqueue_scripts';
     2938        $action_hook_name = 'wp_head';
    29392939    }
    29402940    add_action(
Note: See TracChangeset for help on using the changeset viewer.