Block Editor: Avoid a PHP warning when a theme adds an editor style with an empty filename.

Props pento, gqevu6bsiz.
Merges [45619] to the 5.2 branch.
Fixes #45739.
Built from https://develop.svn.wordpress.org/branches/5.2@45829


git-svn-id: http://core.svn.wordpress.org/branches/5.2@45640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-08-19 04:00:52 +00:00
parent 37b995b2bb
commit 22eb801023
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ if ( $editor_styles && current_theme_supports( 'editor-styles' ) ) {
}
} 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 ),

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.2.3-alpha-45828';
$wp_version = '5.2.3-alpha-45829';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.