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-comment.php

    r47122 r47222  
    1717<h1><?php _e( 'Edit Comment' ); ?></h1>
    1818
    19 <div id="poststuff">
     19<div class="poststuff">
    2020<input type="hidden" name="action" value="editedcomment" />
    2121<input type="hidden" name="comment_ID" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
     
    197197</div>
    198198
    199 <div id="postbox-container-2" class="postbox-container">
     199<div class="postbox-container-2 postbox-container">
    200200<?php
    201201/** This action is documented in wp-admin/includes/meta-boxes.php */
Note: See TracChangeset for help on using the changeset viewer.