mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Coding Standards: Explicitly declare the $wp_version global used in some core files.
Props jaydeep-rami, sabernhardt. Fixes #44932. git-svn-id: https://develop.svn.wordpress.org/trunk@48971 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* @global string $wp_version The WordPress version string.
|
||||
*/
|
||||
function wp_initial_constants() {
|
||||
global $blog_id;
|
||||
global $blog_id, $wp_version;
|
||||
|
||||
/**#@+
|
||||
* Constants for expressing human-readable data sizes in their respective number of bytes.
|
||||
@@ -99,8 +99,8 @@ function wp_initial_constants() {
|
||||
// Add define( 'SCRIPT_DEBUG', true ); to wp-config.php to enable loading of non-minified,
|
||||
// non-concatenated scripts and stylesheets.
|
||||
if ( ! defined( 'SCRIPT_DEBUG' ) ) {
|
||||
if ( ! empty( $GLOBALS['wp_version'] ) ) {
|
||||
$develop_src = false !== strpos( $GLOBALS['wp_version'], '-src' );
|
||||
if ( ! empty( $wp_version ) ) {
|
||||
$develop_src = false !== strpos( $wp_version, '-src' );
|
||||
} else {
|
||||
$develop_src = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user