Make WordPress Core


Ignore:
Timestamp:
02/17/2022 02:17:18 PM (3 years ago)
Author:
jorgefilipecosta
Message:

Global Styles: Load the global styles before the theme styles in the editor.

This commit makes the site editor follow what we do in the front-end, where theme styles are loaded after global styles by default.

Props oandregal, ntsekouras.
Merges [52752] to the 5.9 branch.
Fixes #55188.

Location:
branches/5.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9

  • branches/5.9/src/wp-admin/edit-form-blocks.php

    r52594 r52753  
    192192    'bodyPlaceholder'                      => $body_placeholder,
    193193    'autosaveInterval'                     => AUTOSAVE_INTERVAL,
    194     'styles'                               => get_block_editor_theme_styles(),
    195194    'richEditingEnabled'                   => user_can_richedit(),
    196195    'postLock'                             => $lock_details,
Note: See TracChangeset for help on using the changeset viewer.