X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5964d2279dc52bdfe105f9bfa17e04337d47a3fa..refs/tags/wordpress-3.6.1-scripts:/wp-admin/post-new.php?ds=sidebyside diff --git a/wp-admin/post-new.php b/wp-admin/post-new.php index 8fbe7a22..4d7df63c 100644 --- a/wp-admin/post-new.php +++ b/wp-admin/post-new.php @@ -48,6 +48,17 @@ if ( ! wp_next_scheduled( 'wp_scheduled_auto_draft_delete' ) ) 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;