Make WordPress Core

Changeset 24543


Ignore:
Timestamp:
07/03/2013 01:50:39 AM (11 years ago)
Author:
azaozz
Message:

Post locks: load the post locked dialog html in post-new.php too, see #23697.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post-new.php

    r22858 r24543  
    4949wp_enqueue_script( 'autosave' );
    5050
     51if ( is_multisite() ) {
     52    add_action( 'admin_footer', '_admin_notice_post_locked' );
     53} else {
     54    $check_users = get_users( array( 'fields' => 'ID', 'number' => 2 ) );
     55
     56    if ( count( $check_users ) > 1 )
     57        add_action( 'admin_footer', '_admin_notice_post_locked' );
     58
     59    unset( $check_users );
     60}
     61
    5162// Show post form.
    5263$post = get_default_post_to_edit( $post_type, true );
Note: See TracChangeset for help on using the changeset viewer.