mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56249 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -280,7 +280,7 @@ function wp_get_environment_type() {
|
||||
* It does not affect debugging output, but rather functional nuances in WordPress.
|
||||
*
|
||||
* This function retrieves the currently set development mode value. To check whether
|
||||
* a specific development mode is enabled, use wp_in_development_mode().
|
||||
* a specific development mode is enabled, use wp_is_development_mode().
|
||||
*
|
||||
* @since 6.3.0
|
||||
*
|
||||
@@ -325,7 +325,7 @@ function wp_get_development_mode() {
|
||||
* @param string $mode Development mode to check for. Either 'core', 'plugin', 'theme', or 'all'.
|
||||
* @return bool True if the given mode is covered by the current development mode, false otherwise.
|
||||
*/
|
||||
function wp_in_development_mode( $mode ) {
|
||||
function wp_is_development_mode( $mode ) {
|
||||
$current_mode = wp_get_development_mode();
|
||||
if ( empty( $current_mode ) ) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user