From bb8afb46b9e55f7fe421cf3694cfff9fa5c95bf7 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 11 Jul 2019 07:21:55 +0000 Subject: [PATCH] Block Editor: Avoid a PHP warning when a theme adds an editor style with an empty filename. Fixes #45739. Built from https://develop.svn.wordpress.org/trunk@45619 git-svn-id: http://core.svn.wordpress.org/trunk@45430 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-blocks.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php index 373a6b3cc4..60f44edee9 100644 --- a/wp-admin/edit-form-blocks.php +++ b/wp-admin/edit-form-blocks.php @@ -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 ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 80f4b7e61b..f1a5086530 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45618'; +$wp_version = '5.3-alpha-45619'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.