Make WordPress Core


Ignore:
Timestamp:
12/14/2021 07:37:44 PM (2 years ago)
Author:
hellofromTonya
Message:

Editor: Add "Featured" patterns from pattern directory to Patterns in block inserter.

This commit backports the remote "Featured" category request and loads it into the Featured Patterns in the block inserter.

Props ryelle.
Fixes #54623.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r52369 r52377  
    334334add_action( 'init', '_register_core_block_patterns_and_categories' );
    335335add_action( 'current_screen', '_load_remote_block_patterns' );
     336add_action( 'current_screen', '_load_remote_featured_patterns' );
    336337add_action( 'init', 'check_theme_switched', 99 );
    337338add_action( 'init', array( 'WP_Block_Supports', 'init' ), 22 );
Note: See TracChangeset for help on using the changeset viewer.