mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@50919 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -158,7 +158,7 @@ function register_block_style_handle( $metadata, $field_name ) {
|
||||
return false;
|
||||
}
|
||||
$is_core_block = isset( $metadata['file'] ) && 0 === strpos( $metadata['file'], ABSPATH . WPINC );
|
||||
if ( $is_core_block && ! should_load_separate_core_block_assets() ) {
|
||||
if ( $is_core_block && ! wp_should_load_separate_core_block_assets() ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user