/** * Prints the styles queue in the HTML head on admin pages. * * @since 2.8.0 */ function print_admin_styles() { global $wp_styles, $concatenate_scripts; if (!is_a($wp_styles, 'WP_Styles')) { $wp_styles = new WP_Styles(); } script_concat_settings(); $wp_styles->do_concat = $concatenate_scripts; $wp_styles->do_items(false); /** * Filter whether to print the admin styles. * * @since 2.8.0 * * @param bool $print Whether to print the admin styles. Default true. */ if (apply_filters('print_admin_styles', true)) { _print_styles(); } $wp_styles->reset(); return $wp_styles->done; }
/** * Prints the styles queue in the HTML head on admin pages. * * @since 2.8 */ function print_admin_styles() { global $wp_styles, $concatenate_scripts, $compress_css; if (!is_a($wp_styles, 'WP_Styles')) { $wp_styles = new WP_Styles(); } script_concat_settings(); $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); if (apply_filters('print_admin_styles', true)) { _print_styles(); } $wp_styles->reset(); return $wp_styles->done; }
/** * Prints the styles queue in the HTML head on admin pages. * * @since 2.8.0 */ function print_admin_styles() { global $wp_styles, $concatenate_scripts, $compress_css; if (!is_a($wp_styles, 'WP_Styles')) { $wp_styles = new WP_Styles(); } script_concat_settings(); $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); /** * Filter whether to print the admin styles. * * @since 2.8.0 * * @param bool $print Whether to print the admin styles. Default true. */ if (apply_filters('print_admin_styles', true)) { _print_styles(); } $wp_styles->reset(); return $wp_styles->done; }