Skip to content

WP Explorer: Comment preview does not render comment content #995

Closed

Description

@CookieDarb

When navigating to a post's related comments in WP Explorer and selecting a comment, the comment body preview is completely blank.

The preview panel attempts to read picked.stats.comment?.content in apps/my-wordpress/parts/wire.ts, but the backend payload returned by openstation_my_wordpress_comment_stats_callback (includes/my-wordpress/comment-stats.php) provides the comment body under rendered and rendered_raw keys rather than content. Because the key does not match, the value is always undefined and defaults to an empty string.

Steps to Reproduce

  1. Open WP Explorer from the dock or desktop.
  2. Select any post that has existing comments.
  3. In the post dossier view, click on the Comments folder relation to reveal its list of comments.
  4. Click on any comment to open its preview.
  5. Inspect the preview panel on the right.

Expected Behavior

The preview pane should render the filtered comment content.

Actual Behavior

The preview pane does not contain comment content.

Screenshots

Image
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions