Make WordPress Core


Ignore:
Timestamp:
07/17/2023 02:48:48 PM (20 months ago)
Author:
joemcgill
Message:

General: Rename wp_in_development_mode() to wp_is_development_mode().

This changes the function name for the helper function to check whether the current environment is running with the WP_DEVELOPMENT_MODE constant set to be more consistent with similar functions in core, like wp_is_maintenance_mode() and wp_is_recover_mode().

Props flixos90, swissspidy, costdev, peterwilson, robinwpdeveloper, SergeyBiryukov, joemcgill.
See 57487.

File:
1 edited

Legend:

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

    r56226 r56249  
    52355235     * developer's workflow.
    52365236     */
    5237     $can_use_cached = ! wp_in_development_mode( 'theme' );
     5237    $can_use_cached = ! wp_is_development_mode( 'theme' );
    52385238    $cache_group    = 'theme_json';
    52395239    $cache_key      = 'wp_get_global_styles_svg_filters';
Note: See TracChangeset for help on using the changeset viewer.