Style Concatenation: Fix loading of dashicons non-woff files when concatenation is in use. Fixes #26250
Built from https://develop.svn.wordpress.org/trunk@26374 git-svn-id: http://core.svn.wordpress.org/trunk@26274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e54ee86aaa
commit
a0f43f5cbf
|
@ -126,7 +126,9 @@ foreach( $load as $handle ) {
|
||||||
|
|
||||||
if ( strpos( $style->src, '/wp-includes/css/' ) === 0 ) {
|
if ( strpos( $style->src, '/wp-includes/css/' ) === 0 ) {
|
||||||
$content = str_replace( '../images/', '../wp-includes/images/', $content );
|
$content = str_replace( '../images/', '../wp-includes/images/', $content );
|
||||||
$out .= str_replace( '../js/tinymce/', '../wp-includes/js/tinymce/', $content );
|
$content = str_replace( '../js/tinymce/', '../wp-includes/js/tinymce/', $content );
|
||||||
|
$content = str_replace( '../fonts/', '../wp-includes/fonts/', $content );
|
||||||
|
$out .= $content;
|
||||||
} else {
|
} else {
|
||||||
$out .= str_replace( '../images/', 'images/', $content );
|
$out .= str_replace( '../images/', 'images/', $content );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue