Make WordPress Core


Ignore:
Timestamp:
02/09/2020 07:39:54 PM (4 years ago)
Author:
joedolson
Message:

Editor: Fix incorrect usage of ID attributes on custom fields.

Repeated containers used for custom fields have duplicate ID attributes. Duplicate IDs are incorrect HTML, and will also cause unexpected results when trying to manipulate using JS. Duplicate IDs are changed to matching classes; CSS & JS updated to match.

Props jankimoradiya, audrasjb, donmhico, afercia.
Fixes #46964.

File:
1 edited

Legend:

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

    r47219 r47222  
    246246    <?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
    247247    </div>
    248     <div id="postbox-container-2" class="postbox-container">
     248    <div class="postbox-container-2 postbox-container">
    249249    <?php do_meta_boxes( $screen->id, 'side', '' ); ?>
    250250    </div>
Note: See TracChangeset for help on using the changeset viewer.