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
This commit is contained in:
parent
71f099fdb0
commit
1f1fd617f5
|
@ -1738,10 +1738,12 @@ function _admin_notice_post_locked() {
|
||||||
* Fires inside the post locked dialog before the buttons are displayed.
|
* Fires inside the post locked dialog before the buttons are displayed.
|
||||||
*
|
*
|
||||||
* @since 3.6.0
|
* @since 3.6.0
|
||||||
|
* @since 5.4.0 The $user parameter was added.
|
||||||
*
|
*
|
||||||
* @param WP_Post $post Post object.
|
* @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 );
|
||||||
?>
|
?>
|
||||||
<p>
|
<p>
|
||||||
<a class="button" href="<?php echo esc_url( $sendback ); ?>"><?php echo $sendback_text; ?></a>
|
<a class="button" href="<?php echo esc_url( $sendback ); ?>"><?php echo $sendback_text; ?></a>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue