WordPress.org

Make WordPress Core

Changeset 48857


Ignore:
Timestamp:
08/24/2020 10:32:20 PM (11 months 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.
Merges [48856] to the 5.5 branch.
Fixes #51064.

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

  • branches/5.5/src/wp-includes/load.php

    r48662 r48857  
    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.