Make WordPress Core

Changeset 48856


Ignore:
Timestamp:
08/24/2020 10:30:36 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Bootstrap/Load: Add local environment type to wp_get_environment_type().

This gives developers a better control over their existing development workflow and ensures that local is not the exact same as development if it does not need to be.

Props claytoncollie, johnbillion, jeremyfelt, kreppar, dushakov, TimothyBlynJacobs, Ipstenu, khag7, knutsp, Clorith, markjaquith, joostdevalk, SergeyBiryukov.
Fixes #51064.

File:
1 edited

Legend:

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

    r48662 r48856  
    135135 * or a constant of the same name.
    136136 *
    137  * Possible values include 'development', 'staging', 'production'. If not set,
    138  * the type defaults to 'production'.
     137 * Possible values include 'local', 'development', 'staging', 'production'.
     138 * If not set, the type defaults to 'production'.
    139139 *
    140140 * @since 5.5.0
     141 * @since 5.5.1 The 'local' type was added.
    141142 *
    142143 * @return string The current environment type.
     
    150151
    151152    $wp_environments = array(
     153        'local',
    152154        'development',
    153155        'staging',
Note: See TracChangeset for help on using the changeset viewer.