Skip to content

Commit

Permalink
Editor: Fix undefined $locked var in edit-form-blocks.php when the …
Browse files Browse the repository at this point in the history
…`show_post_locked_dialog` filter is used to disable displaying of the dialog.

Props aprea.
Fixes #47604.

git-svn-id: https://develop.svn.wordpress.org/trunk@45564 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
azaozz committed Jun 25, 2019
1 parent 725c77a commit ec44c57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wp-admin/edit-form-blocks.php
Expand Up @@ -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;
Expand Down

0 comments on commit ec44c57

Please sign in to comment.