mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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:
@@ -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" ),
|
||||
|
||||
Reference in New Issue
Block a user