Skip to content
Permalink
Browse files

Block Editor: Avoid a PHP warning when a theme adds an editor style w…

…ith an empty filename.

Props pento, gqevu6bsiz.
Merges [45619] to the 5.2 branch.
Fixes #45739.

git-svn-id: https://develop.svn.wordpress.org/branches/5.2@45829 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 19, 2019
1 parent 469e5fd commit e8dd021c7fa0e0349b3a5d013df371e897985979
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wp-admin/edit-form-blocks.php
@@ -192,7 +192,7 @@
}
} else {
$file = get_theme_file_path( $style );
if ( file_exists( $file ) ) {
if ( is_file( $file ) ) {
$styles[] = array(
'css' => file_get_contents( $file ),
'baseURL' => get_theme_file_uri( $style ),

0 comments on commit e8dd021

Please sign in to comment.
You can’t perform that action at this time.