From 2ce61ea2d68ac00737c81d73d76addbafaf1445a Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 7 Feb 2020 17:51:09 +0000 Subject: [PATCH] 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 git-svn-id: https://develop.svn.wordpress.org/trunk@47206 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 0ad9bcdaf0..d204f09e05 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -1738,10 +1738,12 @@ function _admin_notice_post_locked() { * Fires inside the post locked dialog before the buttons are displayed. * * @since 3.6.0 + * @since 5.4.0 The $user parameter was added. * * @param WP_Post $post Post object. + * @param WP_User $user The user with the lock for the post. */ - do_action( 'post_locked_dialog', $post ); + do_action( 'post_locked_dialog', $post, $user ); ?>