Make WordPress Core

Changeset 45831


Ignore:
Timestamp:
08/19/2019 04:03:46 AM (7 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
branches/5.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

  • branches/5.2/src/wp-admin/edit-form-blocks.php

    r45829 r45831  
    227227$user_id = wp_check_post_lock( $post->ID );
    228228if ( $user_id ) {
     229        $locked = false;
     230
    229231        /** This filter is documented in wp-admin/includes/post.php */
    230232        if ( apply_filters( 'show_post_locked_dialog', true, $post, $user_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.