Moved wpcom concerns to wpcom.php

This commit is contained in:
Jason Crist 2021-08-02 11:34:17 -04:00
parent cbfecf8a57
commit f29e7cc08a
2 changed files with 6 additions and 2 deletions

View file

@ -102,8 +102,6 @@ function blockbase_restore_customizer() {
remove_action( 'admin_menu', 'gutenberg_remove_legacy_pages' );
}
add_action( 'init', 'blockbase_restore_customizer' );
// For WPcom REST API requests to work properly.
add_action( 'restapi_theme_init', 'blockbase_restore_customizer', 11 );
/**
* Customize Global Styles

View file

@ -15,3 +15,9 @@ function blockbase_wpcom_scripts() {
wp_enqueue_style( 'blockbase-wpcom-style', get_template_directory_uri() . '/inc/wpcom-style.css', array( 'blockbase-ponyfill' ) );
}
add_action( 'wp_enqueue_scripts', 'blockbase_wpcom_scripts' );
/**
* Restores the Customizer since we still rely on it.
* (For WPcom REST API requests to work properly.)
*/
add_action( 'restapi_theme_init', 'blockbase_restore_customizer', 11 );