Skip to content

Commit

Permalink
Post locks: load the post locked dialog html in post-new.php too, see…
Browse files Browse the repository at this point in the history
… #23697.

git-svn-id: http://core.svn.wordpress.org/trunk@24543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
azaozz committed Jul 3, 2013
1 parent 6be5522 commit 504c10d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions wp-admin/post-new.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@

wp_enqueue_script( 'autosave' );

if ( is_multisite() ) {
add_action( 'admin_footer', '_admin_notice_post_locked' );
} else {
$check_users = get_users( array( 'fields' => 'ID', 'number' => 2 ) );

if ( count( $check_users ) > 1 )
add_action( 'admin_footer', '_admin_notice_post_locked' );

unset( $check_users );
}

// Show post form.
$post = get_default_post_to_edit( $post_type, true );
$post_ID = $post->ID;
Expand Down

0 comments on commit 504c10d

Please sign in to comment.