[wp-trac] [WordPress Trac] #24830: No notifications should be shown when filter 'show_post_locked_dialog' returns false
WordPress Trac
noreply at wordpress.org
Mon Jul 29 01:49:12 UTC 2013
#24830: No notifications should be shown when filter 'show_post_locked_dialog'
returns false
--------------------------+------------------
Reporter: DH-Shredder | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Autosave | Version: 3.6
Severity: normal | Resolution:
Keywords: commit |
--------------------------+------------------
Comment (by azaozz):
24830-2.patch (added for reference) add the `show_post_locked_dialog`
filter to `wp_refresh_post_lock()` that handles the response through
heartbeat. This filter can be used to stop showing the "Post lock taken
over" dialog, i.e. not "boot" a user when somebody else edits the same
post. However that would not be enough to handle cases where this might be
needed. It would cause arbitrary overwriting and the users would "fight"
who gets the lock.
24830-3.patch keeps `show_post_locked_dialog` in
_admin_notice_post_locked(). The change is it returns early so no html is
outputted. This effectively disables showing the dialogs and checking post
locks.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24830#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list