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/site-editor.php

    r53094 r53095  
    4545$current_screen = get_current_screen();
    4646$current_screen->is_block_editor( true );
    47 
    48 // Load block patterns from w.org.
    49 _load_remote_block_patterns();
    50 _load_remote_featured_patterns();
    5147
    5248// Default to is-fullscreen-mode to avoid jumps in the UI.
Note: See TracChangeset for help on using the changeset viewer.