Make WordPress Core

Changeset 53095


Ignore:
Timestamp:
04/07/2022 01:51:07 PM (2 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.

Location:
trunk/src/wp-admin
Files:
2 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.
  • 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.