Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#48443 closed defect (bug) (fixed)

Pass the user object to the post_locked_dialog action

Reported by: johnbillion's profile johnbillion Owned by: johnbillion's profile johnbillion
Milestone: 5.4 Priority: normal
Severity: normal Version: 3.6
Component: Posts, Post Types Keywords: has-patch
Focuses: Cc:

Description

The $user object should be passed to the post_locked_dialog action so any callbacks attached to it don't need to re-fetch the user object from the lock.

Attachments (1)

48443.diff (718 bytes) - added by johnbillion 5 years ago.

Download all attachments as: .zip

Change History (3)

@johnbillion
5 years ago

#1 @johnbillion
5 years ago

  • Keywords has-patch added; needs-patch removed
  • Milestone changed from Awaiting Review to 5.4

#2 @johnbillion
5 years ago

  • Owner set to johnbillion
  • Resolution set to fixed
  • Status changed from new to closed

In 47206:

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

Note: See TracTickets for help on using tickets.