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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user