Make WordPress Core


Ignore:
Timestamp:
07/25/2011 12:36:06 AM (12 years ago)
Author:
azaozz
Message:

Use json_encode() for adding script data (formerly l10n). Add the same functionality to WP_Styles for adding inline css after a stylesheet has been outputted. See #11520

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/load-styles.php

    r17630 r18464  
    126126    }
    127127
    128     $out .= str_replace( '../images/', 'images/', $content );
     128    if ( strpos( $style->src, '/wp-includes/css/' ) === 0 )
     129        $out .= str_replace( '../images/', '../wp-includes/images/', $content );
     130    else
     131        $out .= str_replace( '../images/', 'images/', $content );
    129132}
    130133
Note: See TracChangeset for help on using the changeset viewer.