Make WordPress Core


Ignore:
Timestamp:
10/06/2020 04:16:43 AM (4 years ago)
Author:
noisysocks
Message:

Editor: Rename _should_load_block_editor_scripts_and_styles to wp_should_load_block_editor_scripts_and_styles

Follow-up to [49080].
Props zieladam, frank-klein.
See #51330.

File:
1 edited

Legend:

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

    r49083 r49093  
    21712171 */
    21722172function wp_common_block_scripts_and_styles() {
    2173     if ( is_admin() && ! _should_load_block_editor_scripts_and_styles() ) {
     2173    if ( is_admin() && ! wp_should_load_block_editor_scripts_and_styles() ) {
    21742174        return;
    21752175    }
     
    21992199 *
    22002200 * @since 5.6.0
    2201  * @access private
    22022201 *
    22032202 * @return bool
    22042203 */
    2205 function _should_load_block_editor_scripts_and_styles() {
     2204function wp_should_load_block_editor_scripts_and_styles() {
    22062205    global $current_screen;
    22072206
     
    22302229    global $current_screen;
    22312230
    2232     $load_editor_scripts = _should_load_block_editor_scripts_and_styles();
     2231    $load_editor_scripts = wp_should_load_block_editor_scripts_and_styles();
    22332232
    22342233    $block_registry = WP_Block_Type_Registry::get_instance();
Note: See TracChangeset for help on using the changeset viewer.