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/load.php

    r56245 r56249  
    281281 *
    282282 * This function retrieves the currently set development mode value. To check whether
    283  * a specific development mode is enabled, use wp_in_development_mode().
     283 * a specific development mode is enabled, use wp_is_development_mode().
    284284 *
    285285 * @since 6.3.0
     
    326326 * @return bool True if the given mode is covered by the current development mode, false otherwise.
    327327 */
    328 function wp_in_development_mode( $mode ) {
     328function wp_is_development_mode( $mode ) {
    329329    $current_mode = wp_get_development_mode();
    330330    if ( empty( $current_mode ) ) {
Note: See TracChangeset for help on using the changeset viewer.