Changeset 49102
- Timestamp:
- 10/08/2020 01:19:10 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r49101 r49102 2186 2186 */ 2187 2187 function wp_common_block_scripts_and_styles() { 2188 if ( is_admin() &&! wp_should_load_block_editor_scripts_and_styles() ) {2188 if ( ! wp_should_load_block_editor_scripts_and_styles() ) { 2189 2189 return; 2190 2190 } … … 2220 2220 global $current_screen; 2221 2221 2222 if ( ! is_admin() ) { 2223 return false; 2224 } 2225 2222 2226 $is_block_editor_screen = ( $current_screen instanceof WP_Screen ) && $current_screen->is_block_editor(); 2223 2227 2224 2228 /** 2225 2229 * Filters the flag that decides whether or not block editor scripts and 2226 * styles are going to be enqueued on the current screen.2230 * styles are going to be enqueued on the current admin screen. 2227 2231 * 2228 2232 * @since 5.6.0
Note: See TracChangeset
for help on using the changeset viewer.