Post locks:

- Change from IDs to classes for the notification-dialog divs so they can be reused.
- Do not check post locks if the dialog's html is not present.
- Do not check post locks if there is only one user on a single site install.
See #23697.

git-svn-id: http://core.svn.wordpress.org/trunk@24304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2013-05-20 19:36:29 +00:00
parent ad4a081c0c
commit a26190eb2e
4 changed files with 27 additions and 25 deletions

View File

@@ -1202,12 +1202,12 @@ function _admin_notice_post_locked() {
$locked = false;
}
$class = $locked ? '' : ' class="hidden"';
$hidden = $locked ? '' : ' hidden';
?>
<div id="notification-dialog-wrap"<?php echo $class; ?>>
<div id="notification-dialog-background"></div>
<div id="notification-dialog">
<div id="post-lock-dialog" class="notification-dialog-wrap<?php echo $hidden; ?>">
<div class="notification-dialog-background"></div>
<div class="notification-dialog">
<?php
if ( $locked ) {