Make WordPress Core


Ignore:
Timestamp:
07/17/2023 02:48:48 PM (19 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/global-styles-and-settings.php

    r56223 r56249  
    7070     * developer's workflow.
    7171     */
    72     $can_use_cached = ! wp_in_development_mode( 'theme' );
     72    $can_use_cached = ! wp_is_development_mode( 'theme' );
    7373
    7474    $settings = false;
     
    153153     * developer's workflow.
    154154     */
    155     $can_use_cached = empty( $types ) && ! wp_in_development_mode( 'theme' );
     155    $can_use_cached = empty( $types ) && ! wp_is_development_mode( 'theme' );
    156156
    157157    /*
     
    252252     * developer's workflow.
    253253     */
    254     $can_use_cached = ! wp_in_development_mode( 'theme' );
     254    $can_use_cached = ! wp_is_development_mode( 'theme' );
    255255
    256256    /*
     
    361361         * the theme developer's workflow.
    362362         */
    363         ! wp_in_development_mode( 'theme' )
     363        ! wp_is_development_mode( 'theme' )
    364364    ) {
    365365        return $theme_has_support[ $stylesheet ];
Note: See TracChangeset for help on using the changeset viewer.