From ae9cff730f54f2401ce3271477b1ba63fed81f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=83=C2=B3=C3=85=E2=80=9Akowski?= Date: Thu, 7 Apr 2022 13:51:07 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@53095 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-blocks.php | 4 ---- src/wp-admin/site-editor.php | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php index eb422b5280..e80877bcc0 100644 --- a/src/wp-admin/edit-form-blocks.php +++ b/src/wp-admin/edit-form-blocks.php @@ -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', diff --git a/src/wp-admin/site-editor.php b/src/wp-admin/site-editor.php index 8e651979e9..a413ddb2d6 100644 --- a/src/wp-admin/site-editor.php +++ b/src/wp-admin/site-editor.php @@ -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',