[wp-trac] [WordPress Trac] #64706: A single config option to disable all LLM related features
WordPress Trac
noreply at wordpress.org
Thu Apr 16 07:37:48 UTC 2026
#64706: A single config option to disable all LLM related features
-------------------------------------------------+-------------------------
Reporter: romainmrhenry | Owner: justlevine
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: AI | Version: trunk
Severity: normal | Resolution: fixed
Keywords: ai-client has-patch has-unit-tests | Focuses:
commit dev-feedback |
-------------------------------------------------+-------------------------
Changes (by gziolo):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"62239" 62239]:
{{{
#!CommitTicketReference repository="" revision="62239"
AI: Prevent `wp_supports_ai` filter from overriding the `WP_AI_SUPPORT`
constant.
When `WP_AI_SUPPORT` is explicitly set to `false`, `wp_supports_ai()` now
returns early before the filter runs. This ensures the site owner's
explicit preference to disable AI cannot be overridden by a plugin via the
`wp_supports_ai` filter.
The filter default is now always `true`, since the constant check happens
beforehand.
Developed in: https://github.com/WordPress/wordpress-develop/pull/11295
Follow-up to [62067].
Props justlevine, westonruter, gziolo, mindctrl, adamsilverstein,
johnjamesjacoby, ahortin, nilambar, ozgursar, audrasjb, jeffpaul.
Fixes #64706.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64706#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list