Skip to content
Permalink
Browse files

Editor: Fix undefined `$locked` var in edit-form-blocks.php when the …

…`show_post_locked_dialog` filter is used to disable displaying of the dialog.

Props aprea.
Merges [45564] to the 5.2 branch.
Fixes #47604.

git-svn-id: https://develop.svn.wordpress.org/branches/5.2@45831 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 19, 2019
1 parent 4096105 commit 29b52462b92df7dbdb0a7ed1eaa2062e7cbedf12
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/wp-admin/edit-form-blocks.php
@@ -226,6 +226,8 @@
// 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;

0 comments on commit 29b5246

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