Make WordPress Core


Ignore:
Timestamp:
07/17/2023 02:48:48 PM (3 years 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/blocks/index.php

    r56223 r56249  
    4545     * the core developer's workflow.
    4646     */
    47     if ( ! wp_in_development_mode( 'core' ) ) {
     47    if ( ! wp_is_development_mode( 'core' ) ) {
    4848        $transient_name = 'wp_core_block_css_files';
    4949        $files          = get_transient( $transient_name );
Note: See TracChangeset for help on using the changeset viewer.