General: use get_bloginfo( 'version' ) instead of global $wp_version in several locations - excluding those locations which reload version.php mid-flight.

See #37699.


git-svn-id: https://develop.svn.wordpress.org/trunk@38459 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2016-08-31 05:48:49 +00:00
parent 2078dda129
commit 1825eff382
22 changed files with 51 additions and 107 deletions
+2 -3
View File
@@ -3344,8 +3344,6 @@ function wp_admin_css_color( $key, $name, $url, $colors = array(), $icons = arra
* Registers the default Admin color schemes
*
* @since 3.0.0
*
* @global string $wp_version
*/
function register_admin_color_schemes() {
$suffix = is_rtl() ? '-rtl' : '';
@@ -3358,8 +3356,9 @@ function register_admin_color_schemes() {
);
// Other color schemes are not available when running out of src
if ( false !== strpos( $GLOBALS['wp_version'], '-src' ) )
if ( false !== strpos( get_bloginfo( 'version' ), '-src' ) ) {
return;
}
wp_admin_css_color( 'light', _x( 'Light', 'admin color scheme' ),
admin_url( "css/colors/light/colors$suffix.css" ),