Make WordPress Core

Changeset 35228


Ignore:
Timestamp:
10/16/2015 10:42:47 PM (9 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/embed-functions.php

    r34975 r35228  
    811811    <style type="text/css">
    812812    <?php
    813         if ( WP_DEBUG ) {
     813        if ( SCRIPT_DEBUG ) {
    814814            readfile( ABSPATH . WPINC . "/css/wp-oembed-embed.css" );
    815815        } else {
     
    821821             *
    822822             * If you're looking at a build version of this file, you'll see a string of
    823              * minified CSS. If you need to debug it, please turn on WP_DEBUG
     823             * minified CSS. If you need to debug it, please turn on SCRIPT_DEBUG
    824824             * and edit wp-oembed-embed.css directly.
    825825             */
Note: See TracChangeset for help on using the changeset viewer.