[wp-trac] [WordPress Trac] #24551: Post locking prevents collaboration
WordPress Trac
noreply at wordpress.org
Fri Jul 26 05:38:30 UTC 2013
#24551: Post locking prevents collaboration
----------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: Future Release
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: ui-feedback |
----------------------------+-----------------------------
Comment (by azaozz):
> Additionally, a plugin could very easily add in an "ignore" button that
would close the modal and give someone a view of the post.
Here is a (very) basic plugin that does this:
{{{
add_action( 'post_lock_text', '_my_post_lock_text' );
function _my_post_lock_text() {
if ( is_multisite() && is_super_admin() ) {
?>
<p><a href="#" class="my-disable-locked-dialog">Disable
post locks</a></p>
<script>
jQuery('#post-lock-dialog .my-disable-locked-
dialog').click( function(e) {
jQuery('#post-lock-dialog').remove();
e.preventDefault();
});
</script>
<?php
}
}
}}}
Note that removing the dialog HTML also stops checking the lock with
heartbeat.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24551#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list