Skip to content

Preserve WP ULike comment buttons after inline Save #123

Closed

Description

@superdav42

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

  1. Enable SCE and WP ULike with automatic comment buttons.
  2. Submit an approved comment in a guest-owner browser.
  3. Confirm one .wpulike element exists inside the comment and its SCE edit
    button is available after the permission request.
  4. Edit and Save through SCE. The new comment text persists, but the like button
    disappears: the replacement content does not include its markup.
  5. 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.js around the successful-save replacement of
    #sce-comment<id>. Reference the existing sce_return_comment_text and
    sceCommentSavePost integration hooks.
  • Inspect the installed WP ULike version's wp_ulike_put_comments and 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

  1. self-assigned this
    on Oct 16, 2026
  2. added
    status:claimedInteractive implementation is actively claimed
    and removed on Oct 16, 2026
  3. superdav42 commented on Oct 16, 2026

    @superdav42
    CollaboratorAuthor

    Interactive session claimed by @superdav42 on thinkserver.
    Pulse dispatch blocked via status:claimed + self-assignment.


    aidevops.sh v3.39.36 plugin for OpenCode

  4. added and removed
    status:claimedInteractive implementation is actively claimed
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingorigin:interactiveCreated by interactive user sessionstatus:doneTask is complete

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions