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/edit-link-form.php

    r47198 r47222  
    107107?>
    108108
    109 <div id="poststuff">
     109<div class="poststuff">
    110110
    111111<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
     
    145145?>
    146146</div>
    147 <div id="postbox-container-2" class="postbox-container">
     147<div class="postbox-container-2 postbox-container">
    148148<?php
    149149
Note: See TracChangeset for help on using the changeset viewer.