Make WordPress Core


Ignore:
Timestamp:
04/07/2022 01:51:07 PM (3 years ago)
Author:
gziolo
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r53094 r53095  
    2828$current_screen = get_current_screen();
    2929$current_screen->is_block_editor( true );
    30 
    31 // Load block patterns from w.org.
    32 _load_remote_block_patterns();
    33 _load_remote_featured_patterns();
    3430
    3531// Default to is-fullscreen-mode to avoid jumps in the UI.
Note: See TracChangeset for help on using the changeset viewer.