Make WordPress Core

Changeset 45564 for trunk


Ignore:
Timestamp:
06/25/2019 03:02:34 PM (5 years ago)
Author:
azaozz
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.
Fixes #47604.

File:
1 edited

Legend:

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

    r45413 r45564  
    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.