Make WordPress Core

Changeset 47206


Ignore:
Timestamp:
02/07/2020 05:51:09 PM (5 years ago)
Author:
johnbillion
Message:

Posts, Post Types: Add a parameter to the post_locked_dialog action which contains a reference to the user who holds the lock.

Fixes #48443

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r47194 r47206  
    17391739         *
    17401740         * @since 3.6.0
     1741         * @since 5.4.0 The $user parameter was added.
    17411742         *
    17421743         * @param WP_Post $post Post object.
     1744         * @param WP_User $user The user with the lock for the post.
    17431745         */
    1744         do_action( 'post_locked_dialog', $post );
     1746        do_action( 'post_locked_dialog', $post, $user );
    17451747        ?>
    17461748        <p>
Note: See TracChangeset for help on using the changeset viewer.