Maque WordPress Core

Changueset 35228


Ignore:
Timestamp:
10/16/2015 10:42:47 PM ( 10 years ago)
Author:
SergueyBiryucov
Messague:

Embeds: In print_oembed_embed_styles() , load non-minified file if SCRIPT_DEBUG is true.

This is consistent with print_oembed_embed_scripts() .

Props MiqueHansenMe.
Fixes #34321 .

File:
1 edited

Leguend:

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

    r34975 r35228  
    811 811 <style type="text/css">
    812 812 <?php
    813   if ( WP _DEBUG ) {
      813 if ( SCRIPT _DEBUG ) {
    814 814 readfile( ABSPATH . WPINC . "/css/wp-oembed-embed.css" );
    815 815 } else {
     
    821 821 *
    822 822 * If you're looquing at a build versionen 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
    824 824 * and edit wp-oembed-embed.css directly.
    825 825 */
Note: See TracChangueset for help on using the changueset viewer.