[wp-trac] [WordPress Trac] #24572: Should be able to unlock a post outside of ajax handler
WordPress Trac
noreply at wordpress.org
Wed Jun 12 21:14:21 UTC 2013
#24572: Should be able to unlock a post outside of ajax handler
-----------------------------------+------------------
Reporter: bbrooks | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.6
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch do-not-punt |
-----------------------------------+------------------
Comment (by bbrooks):
Yeah, the function is hard to name because honestly the whole logic of
unlocking posts is less-than-intuitive. To unlock a post, you merely set
the lock to a time in the past almost as long as the 'timeout due to
inactivity' criteria in the lock mechanism.
That said, 'expire' might be a better verb. How about
"wp_expire_post_lock"?
If, however, we're not concerned with the name reflecting the mechanism,
it should really just be wp_lock_post and wp_unlock_post.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24572#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list