WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/20/2013 07:36:29 PM (9 years ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r24206 r24304  
    12031203    }
    12041204
    1205     $class = $locked ? '' : ' class="hidden"';
     1205    $hidden = $locked ? '' : ' hidden';
    12061206
    12071207    ?>
    1208     <div id="notification-dialog-wrap"<?php echo $class; ?>>
    1209     <div id="notification-dialog-background"></div>
    1210     <div id="notification-dialog">
     1208    <div id="post-lock-dialog" class="notification-dialog-wrap<?php echo $hidden; ?>">
     1209    <div class="notification-dialog-background"></div>
     1210    <div class="notification-dialog">
    12111211    <?php
    12121212
Note: See TracChangeset for help on using the changeset viewer.