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.
Built from https://develop.svn.wordpress.org/trunk@35228


git-svn-id: http://core.svn.wordpress.org/trunk@35194 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-10-16 22:43:24 +00:00
parent 4430e5dbbb
commit ac630ba233
2 changed files with 3 additions and 3 deletions

View File

@ -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.
*/
?>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-35227';
$wp_version = '4.4-alpha-35228';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.