Repository navigation
feat: register abilities with the Abilities API - #567
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
The first SDK release that carries the AI Connect module this PR opts into. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018GJfggt4S4RuAfF24E93EK
Picks up the AI Connect fixes since 3.3.64: the Enable button hides once the connector is active, the notice matches core's height, and the "enabled" event for products with their own notification UI. 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 the LightStart abilities with the WordPress Abilities API (no-op below WP 6.9).
lightstart/get-mode—wpmm_get_capability( 'settings' )(defaultmanage_options)lightstart/set-mode—wpmm_get_capability( 'settings' )(defaultmanage_options), plusedit_poston the selected pagelightstart/list-subscribers—wpmm_get_capability( 'subscribers' )(defaultmanage_options)The page take-over logic from
switch_selected_page()moved into thewpmm_switch_selected_page()helper so both the settings screen andset-modeuse it.wp_maintenance_mode_ai_connect_metadatafilter (no-op until the SDK release with the module is bundled).Testing:
php -l, PHPCS and PHPStan pass; PHPUnit was not run locally (no WP test environment).meta.ai_connect = false.Related: Codeinwp/wp-plugin-easy-mcp#143
🤖 Generated with Claude Code