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:
Joe McGill
2023-07-17 14:48:48 +00:00
parent 7df1b8366d
commit be1cb4583a
5 changed files with 16 additions and 16 deletions

View File

@@ -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;