Skip to content

Commit

Permalink
Remove duplicate block editor settings (#26330)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored Oct 22, 2020
1 parent 1ad4242 commit ed432f9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/edit-site-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function gutenberg_get_editor_styles() {
* @param string $hook Page.
*/
function gutenberg_edit_site_init( $hook ) {
global $current_screen;
global $current_screen, $post;

if ( ! gutenberg_is_edit_site_page( $hook ) ) {
return;
Expand Down Expand Up @@ -137,11 +137,6 @@ function gutenberg_edit_site_init( $hook ) {
$settings['styles'] = gutenberg_get_editor_styles();
$settings = gutenberg_experimental_global_styles_settings( $settings );

// This is so other parts of the code can hook their own settings.
// Example: Global Styles.
global $post;
$settings = apply_filters( 'block_editor_settings', $settings, $post );

// Preload block editor paths.
// most of these are copied from edit-forms-blocks.php.
$preload_paths = array(
Expand Down

0 comments on commit ed432f9

Please sign in to comment.