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.


git-svn-id: https://develop.svn.wordpress.org/trunk@47222 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joe Dolson
2020-02-09 19:39:54 +00:00
parent 3fb063f705
commit 1d7cdbeab7
10 changed files with 50 additions and 50 deletions

View File

@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="wrap">
<h1><?php _e( 'Edit Comment' ); ?></h1>
<div id="poststuff">
<div class="poststuff">
<input type="hidden" name="action" value="editedcomment" />
<input type="hidden" name="comment_ID" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" />
@@ -196,7 +196,7 @@ endif;
</div><!-- /submitdiv -->
</div>
<div id="postbox-container-2" class="postbox-container">
<div class="postbox-container-2 postbox-container">
<?php
/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'add_meta_boxes', 'comment', $comment );