WordPress.org

Make WordPress Core

Ticket #46747: 46747.1.diff

File 46747.1.diff, 810 bytes (added by audrasjb, 7 months ago)

Dissociate aside and ul elements IDs

  • src/wp-includes/widgets/class-wp-widget-recent-comments.php

    diff --git a/src/wp-includes/widgets/class-wp-widget-recent-comments.php b/src/wp-includes/widgets/class-wp-widget-recent-comments.php
    index 99330a4..4a4748a 100644
    a b class WP_Widget_Recent_Comments extends WP_Widget { 
    112112                        $output .= $args['before_title'] . $title . $args['after_title'];
    113113                }
    114114
    115                 $output .= '<ul id="recentcomments">';
     115                $output .= '<ul id="widget-list-' . esc_attr( $args['widget_id'] ) . '" class="recentcomments">';
    116116                if ( is_array( $comments ) && $comments ) {
    117117                        // Prime cache for associated posts. (Prime post term cache if we need it for permalinks.)
    118118                        $post_ids = array_unique( wp_list_pluck( $comments, 'comment_post_ID' ) );