| 开发者 | ronalfy |
|---|---|
| 更新时间 | 2026年11月25日 05:45 |
| PHP版本: | 6.5 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Yes. The review editor keeps its rating control scoped to the existing review being edited, while the native new-review form continues to use WooCommerce's own rating control.
First identify what the browser received. Inspect the comment for SCE markup,
then use the browser Network and Console panels to check that
dist/sce-editing.js loads as JavaScript after wp-i18n and wp-hooks (and
wp-editor when Quicktags is enabled). Inspect the timer or admin-ajax.php
request before changing settings: an expired timer, a nonce/permission failure, or a
server error needs a different fix. Preserve the comment text and do not expose
controls by bypassing SCE's server-side ownership or nonce checks.
Use a new test comment in a private browser window, then purge the WordPress,
proxy/CDN, and browser caches before every retest. For W3 Total Cache and
similar tools, temporarily exclude dist/sce-editing.js and
dist/integrations-admin.js from minification, combination, defer/delay, and
re-minification; purge and retest before adding optimizations back one at a
time. Do not share cached authenticated or edit-author pages with other
visitors. For Cloudflare, separately test script optimization, cached HTML,
origin HTTP/HTTPS scheme, and client-IP forwarding; none is a known universal
root cause. Keep security and anti-spam protections enabled and use the
narrowest documented exclusion needed.
After a migration, verify WordPress Address and Site Address, the page and
admin-ajax.php origins, and the commenter's cookie domain/path/secure flag.
For an unresolved failure, collect the first console error, asset/AJAX status
and response headers, full server exception/stack trace, versions, and a
standard-theme reproduction. Remove cookies, nonces, secret values, private
comment content, and request bodies from any public report. The GitHub README
has the full cache/proxy/migration diagnostic guide.
Yes. The plugin has been renamed back to Simple Comment Editing.
Bundled translations provide the default frontend labels and countdown text when no WordPress.org language pack is installed, including German and German Formal. WordPress.org and Loco translations can still override the bundled defaults. Labels customized in Settings are saved site values, so update those values directly when changing site languages.
Yes. Enable Quicktags Toolbar in Settings -> Simple Comment Editing to add WordPress's native Quicktags toolbar to the comment editor. It is disabled by default, does not load TinyMCE or CKEditor, and can be left disabled when another plugin uses the documented JavaScript editor lifecycle.
Yes. Both are opt-in under Comment Indicators in Settings -> Simple Comment Editing. Edited timestamps record only successful SCE content changes, not failed saves, no-op changes, or rating-only edits. Labels use the site's date, time and timezone. There is no edit history or backfill; disabling the setting hides existing labels. Deleted placeholders apply only to previously approved native comments moved to Trash through SCE. They display a localized message without deleted text, author, email, URL, avatar or editor fields, while keeping approved threaded replies. WordPress retains the private original in Trash under its normal retention policy; SCE copies no author or content data. Restoration restores normal output. Permanent deletion, including automatic Trash expiry, removes the placeholder. Pending/spam comments, WooCommerce reviews and moderator actions outside SCE are excluded. Disabling the option hides placeholders without changing WordPress Trash behavior. This presentation supports classic comments_template() / wp_list_comments() lists, not block comment-query loops or arbitrary custom renderers. With pagination, deleted branches stay with a visible live ancestor; otherwise they appear on the default view / first comment page. Placeholders do not change the public comment count or add pages. The GitHub README documents the metadata and recovery policy.
Yes. SCE respects the browser's reduced-motion preference and skips the decorative 0.6-second reveal animation for all button themes. It also skips the animation when WP ULike is active, to avoid an extra fade beside its like buttons. There is no admin setting. Plugins can use add_filter( 'sce_skip_control_reveal', '__return_true' ); to skip the animation, or return false to opt out of the WP ULike default. The filter receives the default boolean and comment ID. Returning false never overrides the browser's reduced-motion preference. Keyboard behavior and the edit timer are unchanged.
This is a presentation policy, not immediate authorization or a measured network speedup. Controls remain hidden until the server confirms ownership and the remaining edit time, including for logged-in authors with unlimited editing. Independent plugin requests can still finish at different times. Failed permission requests keep controls hidden. Save and Delete still validate permissions and nonces on the server. Personalized pages for logged-in users or guest authors with editing cookies must bypass shared page/CDN caches; hiding controls cannot protect private textarea content already included in incorrectly shared HTML. Purge cached pages after changing the filter or WP ULike activation.
Yes. The integration guide in the GitHub README documents comment-scoped extra fields, safe metadata saving, custom loops that call WordPress's native comment_text() path, button HTML, and inline action-row styling. Keep SCE's editor wrappers and controls intact so its nonce, ownership checks, Save, Cancel, and Delete actions continue to work.
Yes. SCE observes newly inserted controls, and integrations can call window.SCE.init( insertedComment ) after attaching their markup. Repeated calls reuse handlers and the countdown. The existing WP Ajaxify event and SCE_comments_updated callback remain supported. Assets preload on singular content with open or existing comments, including for first-time guests; the asset-loading policies and sce_load_scripts override still apply.
Custom AJAX submitters must render through WordPress's native comment_text() path and opt into sce_ajax_comment_submission only around their existing validated comment-creation call, before sending output. The README has the adapter fragment. This establishes the guest cookie in the original submission response, not through a public comment-ID claim endpoint. Initialization never bypasses nonce, ownership, or expiry checks.
Lazy Load for Comments uses the DOM-insertion contract rather than a private plugin event; this is not a claim that every plugin-version combination has been verified. The BuddyBoss adapter is explicitly unverified and requires both native comment rendering and the validated server submission route. Test actual integrations with separate owner/non-owner browsers before release.
The GitHub README records browser verification with Ajaxify Comments 3.2.2 and Lazy Load for Comments 2.1.0 on Twenty Twenty-Five, including the Ajaxify comments-container selector required by that theme.
Yes. In Dashboard -> Comments, use a comment's Move action (or Comments -> Move comment). Enter the destination post ID, choose only that comment or its entire reply subtree, then preview and explicitly confirm. This is an admin-only tool: it requires comment moderation, edit access to every affected comment, and read and edit access to both posts. It does not add public commenter controls. The moved root becomes top-level on the destination. If replies stay behind, direct children inherit the root's former parent on the original post (or become top-level); deeper replies keep their parents. If replies move, their internal parents are preserved. The preview shows both posts, their statuses, and the number of comments moving or staying. Moving approved comments can expose them on the destination; content, approval and metadata are not changed. The destination must accept comments. Trashed posts, attachments, WooCommerce products/reviews, pingbacks, trackbacks, spam/trashed comments, invalid threads, and threads over 500 comments are rejected. Closed source posts are allowed. InnoDB comment, post and option tables plus database advisory locks and serializable transactions are required; unsupported storage fails without moving comments. Placement and both approved-comment counts are updated in one transaction. A changed preview or a known rolled-back failure can be retried after previewing again; it does not block later moves.
Before any placement changes, SCE saves a non-autoloaded private option named
_sce_comment_move_<operation UUID> containing before/after comment post and
parent IDs, the initiating moderator ID, time and outcome. It contains no comment
content or author details. _sce_comment_move_pending is an additive, normally
absent pointer to an unresolved operation; no existing option defaults change and
no backfill runs. Records are retained, not automatically expired or removed by
this feature, so an interrupted operation does not lose its recovery data.
The outcome screen provides Restore original placement. An interrupted operation
is also linked from Comments -> Move comment and blocks new moves until recovery.
Recovery has its own nonce and checks current permissions on both posts and all
affected comments. It restores placements and counts only, not content or
metadata. It refuses new replies, unrelated placement changes, missing parents,
or cycles instead of overwriting another moderator's work. Retain the journal
when investigating a refused recovery or database failure; do not delete the
pending marker to bypass it. Normal deactivation does not undo a completed move.
It's impossible to style an inline comment editor for every theme. We've included basic HTML markup that is easily stylable to fit your theme.
You can find the options by logging into your Dashboard and going to Settings->Simple Comment Editing.
Yes. Settings -> Simple Comment Editing includes opt-in policies to load assets on built-in WordPress posts only, or only where a comment flow is available. The posts-only policy excludes pages, WooCommerce products, and custom post types. The comment-availability policy still loads SCE for existing editable comments and supported Ajaxify Comments lazy loading. Both are disabled by default. Developers can use sce_load_scripts after these policies: returning false suppresses both SCE JavaScript and CSS, while true loads SCE on an excluded singular view.
Simple Comment Editing will work all the way back to IE10.
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. Report a security vulnerability.
check_comment function always returning that a comment should be in moderation when saving an edited comment.sce_return_comment_text