Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #24830, comment 2


Ignore:
Timestamp:
07/26/2013 08:03:16 PM (10 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24830, comment 2

    v1 v2  
    33To stop showing post locked dialogs completely, it is better to remove the html for the modal. Then locks won't be checked with heartbeat too. Example:
    44{{{
    5 add_action( 'admin_footer', 'my_disable_post_locks', 1 );
     5add_action( 'dbx_post_sidebar', 'my_disable_post_locks' );
    66function my_disable_post_locks() {
    77  if ( ... )