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/post.php

    r47219 r47222  
    22722272    <?php foreach ( $locations as $location ) : ?>
    22732273        <form class="metabox-location-<?php echo esc_attr( $location ); ?>" onsubmit="return false;">
    2274             <div id="poststuff" class="sidebar-open">
    2275                 <div id="postbox-container-2" class="postbox-container">
     2274            <div class="poststuff" class="sidebar-open">
     2275                <div class="postbox-container-2 postbox-container">
    22762276                    <?php
    22772277                    do_meta_boxes(
Note: See TracChangeset for help on using the changeset viewer.