Repository navigation
Description
Summary
WP ULike comment buttons disappear after an SCE Save until the page is reloaded.
Observed during PR #121 browser verification with WP ULike 5.2.4 and Twenty
Twenty-Five. This is separate from the decorative reveal policy.
Reproduction and evidence
- Enable SCE and WP ULike with automatic comment buttons.
- Submit an approved comment in a guest-owner browser.
- Confirm one
.wpulikeelement exists inside the comment and its SCE edit
button is available after the permission request. - Edit and Save through SCE. The new comment text persists, but the like button
disappears: the replacement content does not include its markup. - Reload: the like button returns. Observed on the guest-owner save path;
subscriber Save persistence was also verified, but its post-save like-button
count was not separately captured.
Implementation brief
- Inspect
includes/Functions.php::get_comment_content,
includes/Ajax.php::save_comment, and
src/js/comment-editing/editing.jsaround the successful-save replacement of
#sce-comment<id>. Reference the existingsce_return_comment_textand
sceCommentSavePostintegration hooks. - Inspect the installed WP ULike version's
wp_ulike_put_commentsand its
frontend/AJAX guards before deciding whether to regenerate or retain its
comment-scoped control. Its external repository path is not assumed. - Preserve current counts, vote state and handlers without duplicates. Do not
wrap another SCE editor into the returned content or weaken ownership/nonce
checks. Do not alter WP ULike's plugin files. - The affected response and formatting sources are unchanged by PR GH#101: respect browser motion preferences and filter control reveal #121;
the reveal filter itself only changes a wrapper class.
Verification
Build the actual linked worktree and use the configured local WordPress site;
coordinate its shared plugin symlink first. Test real guest-owner, subscriber
and non-owner browsers with WP ULike 5.2.4 active and inactive. Verify Save,
Cancel, repeat saves, voting/count persistence and no duplicate controls or
requests. Confirm saved text using WP-CLI and inspect console/network. Run
scoped ESLint/PHPCS/PHPStan for changed sources and the existing build. Do not
run PHPUnit against the development database; use a disposable _test database
if configured.
aidevops.sh v3.39.36 plugin for OpenCode
Activity
superdav42 commentedon Oct 16, 2026
aidevops.sh v3.39.36 plugin for OpenCode