fix(widgets): drop decorative ajaxpager shells on side lists

Recent comments, categories, tag cloud, and user lists no longer wrap
static HTML in inert ajaxpager attributes without real pagination.
This commit is contained in:
kate522 committed 2026-07-21 12:59:05 +08:00
1 parent 152772ea60
commit 22f7e7ecf5
4 files changed
-12

No files matched your search

@@ -169,10 +169,7 @@ class RecentCommentsWidget extends \WP_Widget {
if ($title !== '') {
echo $args['before_title'] . esc_html($title) . $args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
$rest = rest_url('aksrt/v1/widgets/recent-comments');
echo '<div class="ajaxpager" data-aksrt-ajaxpager data-aksrt-ajax-url="' . esc_url($rest) . '">';
echo self::render_html($instance); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo '</div>';
echo $args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}