mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user