Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use other patch :-)
  • Loading branch information
mkaz committed Nov 25, 2018
commit 5c9793c80b761c64c1889638cd22ba0759cf2662
13 changes: 5 additions & 8 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -1225,15 +1225,12 @@ function gutenberg_editor_scripts_and_styles( $hook ) {
);
} else {
$file = get_theme_file_path( $style );
if ( file_exists( get_theme_file_path( $style ) ) ) {
$css = file_get_contents( get_theme_file_path( $style ) );
} else {
$css = '';
if ( file_exists( $file ) ) {
$styles[] = array(
'css' => file_get_contents( $file ),
'baseURL' => get_theme_file_uri( $style ),
);
}
$styles[] = array(
'css' => $css,
'baseURL' => get_theme_file_uri( $style ),
);
}
}
}
Expand Down