diff options
author | Yaco <franco@reevo.org> | 2019-10-04 16:03:20 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2019-10-04 16:03:20 -0300 |
commit | ac6bedd68a70d744a927494351100e6bfabfe14e (patch) | |
tree | 7a9a7967a6244008edbc27055b205d936cb45b02 /www/crm/wp-admin/edit-form-blocks.php | |
parent | b25b94b8b0aacab5a5a38bb107201c7f92c083ab (diff) |
Actualiza WP a 5.2.3
Diffstat (limited to 'www/crm/wp-admin/edit-form-blocks.php')
-rw-r--r-- | www/crm/wp-admin/edit-form-blocks.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/www/crm/wp-admin/edit-form-blocks.php b/www/crm/wp-admin/edit-form-blocks.php index 0ae82cb3..4f68a8a4 100644 --- a/www/crm/wp-admin/edit-form-blocks.php +++ b/www/crm/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 ), @@ -226,6 +226,8 @@ foreach ( $image_size_names as $image_size_slug => $image_size_name ) { // Lock settings. $user_id = wp_check_post_lock( $post->ID ); if ( $user_id ) { + $locked = false; + /** This filter is documented in wp-admin/includes/post.php */ if ( apply_filters( 'show_post_locked_dialog', true, $post, $user_id ) ) { $locked = true; |