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-form-advanced.php

    r47219 r47222  
    495495?>
    496496
    497 <div id="poststuff">
     497<div class="poststuff">
    498498<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
    499499<div id="post-body-content">
     
    672672?>
    673673</div>
    674 <div id="postbox-container-2" class="postbox-container">
     674<div class="postbox-container-2 postbox-container">
    675675<?php
    676676
Note: See TracChangeset for help on using the changeset viewer.