Embeds: In print_oembed_embed_styles()
, load non-minified file if SCRIPT_DEBUG
is true.
This is consistent with `print_oembed_embed_scripts()`. Props MikeHansenMe. Fixes #34321. git-svn-id: https://develop.svn.wordpress.org/trunk@35228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f22ba848df
commit
7b6454bf6b
@ -810,7 +810,7 @@ function print_oembed_embed_styles() {
|
||||
?>
|
||||
<style type="text/css">
|
||||
<?php
|
||||
if ( WP_DEBUG ) {
|
||||
if ( SCRIPT_DEBUG ) {
|
||||
readfile( ABSPATH . WPINC . "/css/wp-oembed-embed.css" );
|
||||
} else {
|
||||
/*
|
||||
@ -820,7 +820,7 @@ function print_oembed_embed_styles() {
|
||||
* readfile() method from above.
|
||||
*
|
||||
* If you're looking at a build version of this file, you'll see a string of
|
||||
* minified CSS. If you need to debug it, please turn on WP_DEBUG
|
||||
* minified CSS. If you need to debug it, please turn on SCRIPT_DEBUG
|
||||
* and edit wp-oembed-embed.css directly.
|
||||
*/
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user