Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Contributor
|
💂♂️ PR Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Contributor
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Registers five Visualizer abilities with the WordPress Abilities API (no-op below WP 6.9).
visualizer/list-charts—edit_posts; users withoutedit_others_postsonly see their own chartsvisualizer/get-chart—edit_posts+Visualizer_Module::can_edit_chart()visualizer/upsert-chart—edit_poststo create,can_edit_chart()to update; chart types gated by planvisualizer/set-data-source—edit_posts+can_edit_chart();db_queryalso needsadministrator+ super admin; sources and refresh intervals gated by planvisualizer/refresh-chart-data—edit_posts+can_edit_chart()visualizer_ai_connect_metadatafilter (no-op until the SDK release that ships it)Testing:
php -l, PHPCS and PHPStan pass; all abilities exercised throughWP_Ability::execute()on a local WP 7.1 install (Free, and Pro plan simulated via the plan filters).🤖 Generated with Claude Code