From 1f1fd617f59bdaeb707edcac2a138bcc825d2c06 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 7 Feb 2020 17:53:06 +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 Built from https://develop.svn.wordpress.org/trunk@47206 git-svn-id: http://core.svn.wordpress.org/trunk@47006 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 0ad9bcdaf0..d204f09e05 100644 --- a/wp-admin/includes/post.php +++ b/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 ); ?>

diff --git a/wp-includes/version.php b/wp-includes/version.php index 109c499ed7..9ef20cc274 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47205'; +$wp_version = '5.4-alpha-47206'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.