fix(widgets): strip remaining decorative forum/oneline ajaxpagers
Board list, plate lists, topic terms and oneline posts no longer wrap static SSR in inert ajaxpager attributes without a real pager.
This commit is contained in:
1 parent
99531e625d
commit
80991d8347
4 files changed
+2
-12
No files matched your search
@@ -151,9 +151,7 @@ class WidgetForumPlateLists extends \WP_Widget {
|
||||
echo $args['before_title'] . esc_html($title) . $args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
}
|
||||
|
||||
// IAS-like: first paint is SSR; optional remote refresh via rest for customize.
|
||||
$rest = rest_url('aksrt/v1/forum/frontend/widgets/plates');
|
||||
echo '<div class="widget-plate-lists ajaxpager mb20" data-aksrt-ajaxpager data-aksrt-ajax-url="' . esc_url($rest) . '">';
|
||||
echo '<div class="widget-plate-lists mb20">';
|
||||
echo $payload['html']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
echo '</div>';
|
||||
|
||||
|
||||
Reference in new issue
Block a user