mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-19 15:22:45 +00:00
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
This commit is contained in:
parent
c7caac7289
commit
2ce61ea2d6
@ -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 );
|
||||
?>
|
||||
<p>
|
||||
<a class="button" href="<?php echo esc_url( $sendback ); ?>"><?php echo $sendback_text; ?></a>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user