From 8cc84ab4c991b2c32b71f88ebe99724f5ea20df0 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 3 Jul 2013 01:50:39 +0000 Subject: [PATCH] Post locks: load the post locked dialog html in post-new.php too, see #23697. git-svn-id: https://develop.svn.wordpress.org/trunk@24543 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/post-new.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wp-admin/post-new.php b/wp-admin/post-new.php index 8fbe7a228a..4d7df63c94 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;