| 开发者 | brokensmile.2103 |
|---|---|
| 更新时间 | 2026年10月2日 16:31 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/[init_plugin_suite_recent_comments] in any page or widgetinit_plugin_suite_recent_comments_query_args / init_plugin_suite_user_recent_comments_query_argsinit_plugin_suite_recent_comments_visible_reviews lets developers adjust the resultget-user-recent-comments only allows looking up guest comments by user_email for users who can moderate comments, so the public endpoint can no longer be used to match email addresses to commenters. Lookups by user_id / user_login are unchangedget-user-recent-reviews only returns non-approved reviews (pending, rejected, ...) to users with the manage_options capability (the same capability Init Review System uses for review management). Approved reviews stay publicmaxheight attribute (and the block's "Max Height" setting) is now actually applied (e.g. maxheight="300px"). Previously the value was ignored and the list was always capped at 650px. Values that aren't a plain number + unit (px, em, rem, vh, vw, %) keep the old 650px behavior& in plain permalinks)current_time( 'timestamp' ) pattern, so they stay correct across timezones and DSTdisable_css value of 0 set programmaticallywp-data dependencylast_changed and Init Review System's cache version), so new comments show up immediately instead of after the TTL expires.pot file and the Vietnamese translationinit-recent-comments category — get-recent-comments, get-recent-reviews, get-user-recent-comments, and get-user-recent-reviews — mirroring all four shortcodes exactly. This plugin has no write actions, so all of its data is safely exposed. Discoverable and executable via PHP, wp_get_abilities(), and — when a site opts in — the wp-abilities/v1 REST namespace. Fully optional and backward-compatible: on WordPress versions older than 6.9, the integration silently does nothingblock.json (with a PHP render.php file wired through the "render" field, WP 6.1+) that calls the exact same shortcode function as its shortcode counterpart — no duplicated display logic, output always matches. The editor integration is a single, no-build-step vanilla JavaScript file using wp.serverSideRender for a live preview directly in the editorRequires at least raised from 5.5 to 6.9 to support the Abilities API integration. Requires PHP remains 7.4[init_plugin_suite_recent_comments], [init_plugin_suite_recent_reviews], [init_plugin_suite_user_recent_comments], [init_plugin_suite_user_recent_reviews]) by default; legacy tags remain fully supported[init_plugin_suite_user_recent_comments] — display recent comments made by a specific user[init_plugin_suite_user_recent_reviews] — display recent reviews made by a specific user[init_user_recent_comments] and [init_user_recent_reviews]init_plugin_suite_recent_comments_get_user_comments()init_plugin_suite_recent_comments_get_user_reviews()init_plugin_suite_user_recent_comments_ttl, init_plugin_suite_user_recent_reviews_ttl)user_id instead of relying on non-existing author_nameinit_plugin_suite_recent_comments_query_args allows developers to modify or extend the comment query args before running get_comments()post_type, change number, include meta_query, etc.)init_comment_totals) to improve cache isolation and performance[init_recent_reviews] for displaying recent reviews[init_plugin_suite_recent_comments] and [init_plugin_suite_recent_reviews] for better naming consistency[init_recent_comments] and [init_recent_reviews] still workinit-recent-comments/review-wrapper.php)[init_recent_comments]