Make WordPress Core


Ignore:
Timestamp:
05/17/2021 02:26:53 PM (4 years ago)
Author:
gziolo
Message:

Editor: Rename should_load_separate_core_block_assets for consistency

Changes introduced:

  • The wp_should_load_separate_core_block_assets function.
  • The should_load_separate_core_block_assets filter.

Props hellofromTonya, SergeyBiryukov.
Fixes #50328.

File:
1 edited

Legend:

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

    r50837 r50919  
    159159    }
    160160    $is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], ABSPATH . WPINC );
    161     if ( $is_core_block && ! should_load_separate_core_block_assets() ) {
     161    if ( $is_core_block && ! wp_should_load_separate_core_block_assets() ) {
    162162        return false;
    163163    }
Note: See TracChangeset for help on using the changeset viewer.