feat(widgets): expand WidgetAjax routes and ajaxpager wraps
Register category-block/recommend, boards, tag-cloud, categories, and term endpoints; wrap oneline/comments/users with ajaxpager shells.
This commit is contained in:
1 parent
5a900d7385
commit
5eb04f4bd2
4 files changed
+148
-11
No files matched your search
@@ -129,7 +129,10 @@ class WidgetUserLists 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/user-lists');
|
||||
echo '<div class="ajaxpager" data-aksrt-ajaxpager data-aksrt-ajax-url="' . esc_url($rest) . '">';
|
||||
echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
echo '</div>';
|
||||
echo $args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user