diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php index e6abe9998028f..65b5fc5634eb0 100644 --- a/src/wp-admin/edit-form-blocks.php +++ b/src/wp-admin/edit-form-blocks.php @@ -67,7 +67,7 @@ static function ( $classes ) { array( '/wp/v2/settings', 'OPTIONS' ), '/wp/v2/global-styles/themes/' . get_stylesheet(), '/wp/v2/themes?context=edit&status=active', - '/wp/v2/global-styles/' . WP_Theme_JSON_Resolver::get_user_global_styles_post_id() . '?context=edit', + '/wp/v2/global-styles/' . WP_Theme_JSON_Resolver::get_user_global_styles_post_id(), ); block_editor_rest_api_preload( $preload_paths, $block_editor_context ); @@ -123,14 +123,6 @@ static function ( $classes ) { 'before' ); -// Set Heartbeat interval to 10 seconds, used to refresh post locks. -wp_add_inline_script( - 'heartbeat', - 'if ( window.wp && window.wp.heartbeat ) { - window.wp.heartbeat.interval( 10 ); - }' -); - /* * Get all available templates for the post/page attributes meta-box. * The "Default template" array element should only be added if the array is diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 725433939e060..b31af8860ca80 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -489,7 +489,7 @@ function create_initial_post_types() { 'revisions_rest_controller_class' => 'WP_REST_Global_Styles_Revisions_Controller', 'late_route_registration' => true, 'capabilities' => array( - 'read' => 'edit_theme_options', + 'read' => 'edit_posts', 'create_posts' => 'edit_theme_options', 'edit_posts' => 'edit_theme_options', 'edit_published_posts' => 'edit_theme_options',