mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Editor: Remove loading remote patterns from editor pages
Stops loading remote patterns on the post editor and site editor pages. The only place to load remote patterns is going to be the `/wp/v2/block-patterns/patterns` REST endpoint handler. Props jsnajdr. See #55505. Built from https://develop.svn.wordpress.org/trunk@53095 git-svn-id: http://core.svn.wordpress.org/trunk@52684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
358dd334a4
commit
758211c9b8
@ -28,10 +28,6 @@ $block_editor_context = new WP_Block_Editor_Context( array( 'post' => $post ) );
|
||||
$current_screen = get_current_screen();
|
||||
$current_screen->is_block_editor( true );
|
||||
|
||||
// Load block patterns from w.org.
|
||||
_load_remote_block_patterns();
|
||||
_load_remote_featured_patterns();
|
||||
|
||||
// Default to is-fullscreen-mode to avoid jumps in the UI.
|
||||
add_filter(
|
||||
'admin_body_class',
|
||||
|
@ -45,10 +45,6 @@ $parent_file = 'themes.php';
|
||||
$current_screen = get_current_screen();
|
||||
$current_screen->is_block_editor( true );
|
||||
|
||||
// Load block patterns from w.org.
|
||||
_load_remote_block_patterns();
|
||||
_load_remote_featured_patterns();
|
||||
|
||||
// Default to is-fullscreen-mode to avoid jumps in the UI.
|
||||
add_filter(
|
||||
'admin_body_class',
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0-alpha-53094';
|
||||
$wp_version = '6.0-alpha-53095';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user