2004-01-27 20:52:58 -05:00
|
|
|
<?php
|
2018-10-01 17:00:26 -04:00
|
|
|
/**
|
|
|
|
* WordPress Version
|
|
|
|
*
|
|
|
|
* Contains version information for the current WordPress release.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
2021-06-21 00:29:56 -04:00
|
|
|
* @since 1.2.0
|
2018-10-01 17:00:26 -04:00
|
|
|
*/
|
|
|
|
|
2008-01-04 15:05:07 -05:00
|
|
|
/**
|
2020-02-09 22:30:06 -05:00
|
|
|
* The WordPress version string.
|
2008-01-04 15:05:07 -05:00
|
|
|
*
|
2021-09-14 13:31:59 -04:00
|
|
|
* Holds the current version number for WordPress core. Used to bust caches
|
|
|
|
* and to enable development mode for scripts when running from the /src directory.
|
|
|
|
*
|
2008-01-04 15:05:07 -05:00
|
|
|
* @global string $wp_version
|
|
|
|
*/
|
General: Introduce `WP_DEVELOPMENT_MODE` constant to signify context-specific development mode.
In recent releases, WordPress core added several instances of cache usage around specific files. While those caches are safe to use in a production context, in development certain nuances apply for whether or not those caches make sense to use. Initially, `WP_DEBUG` was used as a temporary workaround, but it was clear that a more granular method to signify a specific development mode was required: For example, caches around `theme.json` should be disabled when working on a theme as otherwise it would disrupt the theme developer's workflow, but when working on a plugin or WordPress core, this consideration does not apply.
This changeset introduces a `WP_DEVELOPMENT_MODE` constant which, for now, can be set to either "core", "plugin", "theme", or an empty string, the latter of which means no development mode, which is also the default. A new function `wp_get_development_mode()` is the recommended way to retrieve that configuration value.
With the new function available, this changeset replaces all existing instances of the aforementioned `WP_DEBUG` workaround to use `wp_get_development_mode()` with a more specific check.
Props azaozz, sergeybiryukov, peterwilsoncc, spacedmonkey.
Fixes #57487.
Built from https://develop.svn.wordpress.org/trunk@56042
git-svn-id: http://core.svn.wordpress.org/trunk@55554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-06-26 15:57:25 -04:00
|
|
|
$wp_version = '6.3-alpha-56042';
|
2008-01-04 15:05:07 -05:00
|
|
|
|
|
|
|
/**
|
2008-06-24 13:45:33 -04:00
|
|
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
2008-01-04 15:05:07 -05:00
|
|
|
*
|
|
|
|
* @global int $wp_db_version
|
|
|
|
*/
|
2023-05-24 13:35:18 -04:00
|
|
|
$wp_db_version = 55853;
|
2004-01-27 20:52:58 -05:00
|
|
|
|
2009-05-18 16:29:26 -04:00
|
|
|
/**
|
2020-02-09 22:30:06 -05:00
|
|
|
* Holds the TinyMCE version.
|
2009-05-18 16:29:26 -04:00
|
|
|
*
|
|
|
|
* @global string $tinymce_version
|
|
|
|
*/
|
2020-11-10 05:44:08 -05:00
|
|
|
$tinymce_version = '49110-20201110';
|
2009-05-18 16:29:26 -04:00
|
|
|
|
2009-12-17 13:46:19 -05:00
|
|
|
/**
|
2020-02-09 22:30:06 -05:00
|
|
|
* Holds the required PHP version.
|
2009-12-17 13:46:19 -05:00
|
|
|
*
|
|
|
|
* @global string $required_php_version
|
|
|
|
*/
|
2019-03-28 17:12:52 -04:00
|
|
|
$required_php_version = '5.6.20';
|
2009-12-17 13:46:19 -05:00
|
|
|
|
|
|
|
/**
|
2020-02-09 22:30:06 -05:00
|
|
|
* Holds the required MySQL version.
|
2009-12-17 13:46:19 -05:00
|
|
|
*
|
|
|
|
* @global string $required_mysql_version
|
|
|
|
*/
|
2011-03-21 14:30:56 -04:00
|
|
|
$required_mysql_version = '5.0';
|