Make WordPress Core

Changeset 45619


Ignore:
Timestamp:
07/11/2019 07:20:40 AM (5 years ago)
Author:
pento
Message:

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

Fixes #45739.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r45564 r45619  
    193193        } else {
    194194            $file = get_theme_file_path( $style );
    195             if ( file_exists( $file ) ) {
     195            if ( is_file( $file ) ) {
    196196                $styles[] = array(
    197197                    'css'     => file_get_contents( $file ),
Note: See TracChangeset for help on using the changeset viewer.