Skip to content

PCI Sidebar: Fix multiple contact messages #4096

@acicovic

Description

@acicovic

Summary

When no Parse.ly credentials are configured, the plugin sidebar's Tools tab shows the "Contact us" credentials message multiple times — once per expanded panel.

Current state

Each panel in the Tools tab (Title Suggestions, Excerpt Suggestions, Smart Linking, Related Posts) independently checks for credentials using <VerifyCredentials>. When credentials are missing, every expanded panel renders its own copy of the "Contact us / wp-parsely options" message, resulting in the same message appearing up to 4 times simultaneously. The "Boost Engagement" button also remains visible below the repeated messages. The Performance tab does not have this problem — it wraps all its content in a single credential gate.

Image

Desired state

The credentials message should appear exactly once in the Tools tab, consistent with how the Performance tab handles it. The "Boost Engagement" button should also be hidden when credentials are not set, since it requires credentials to be useful.

Metadata

Metadata

Assignees

Labels

wp-parselyRequired label for all issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions