In `print_admin_styles()`, `$zip` is never used after being set. `$compress_css` does not need to be imported.
See #27882. Built from https://develop.svn.wordpress.org/trunk@28336 git-svn-id: http://core.svn.wordpress.org/trunk@28164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1ef3438961
commit
cca9ff329b
|
@ -918,17 +918,13 @@ function wp_enqueue_scripts() {
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*/
|
*/
|
||||||
function print_admin_styles() {
|
function print_admin_styles() {
|
||||||
global $wp_styles, $concatenate_scripts, $compress_css;
|
global $wp_styles, $concatenate_scripts;
|
||||||
|
|
||||||
if ( !is_a($wp_styles, 'WP_Styles') )
|
if ( !is_a($wp_styles, 'WP_Styles') )
|
||||||
$wp_styles = new WP_Styles();
|
$wp_styles = new WP_Styles();
|
||||||
|
|
||||||
script_concat_settings();
|
script_concat_settings();
|
||||||
$wp_styles->do_concat = $concatenate_scripts;
|
$wp_styles->do_concat = $concatenate_scripts;
|
||||||
$zip = $compress_css ? 1 : 0;
|
|
||||||
if ( $zip && defined('ENFORCE_GZIP') && ENFORCE_GZIP )
|
|
||||||
$zip = 'gzip';
|
|
||||||
|
|
||||||
$wp_styles->do_items(false);
|
$wp_styles->do_items(false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue