[wp-trac] [WordPress Trac] #64697: Getting fatal error on 7.0-beta.1

WordPress Trac noreply at wordpress.org
Wed Feb 25 16:30:13 UTC 2026


#64697: Getting fatal error on 7.0-beta.1
--------------------------+---------------------
 Reporter:  gautammkgarg  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  7.0
Component:  AI            |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------

Comment (by justlevine):

 This seems to be due to Plugin Check relying on Composer to
 [https://github.com/WordPress/plugin-check/blob/trunk/composer.json#L17
 require wp-ai-client], both in a manner and usage that makes it
 incompatible with 7.0beta1.

 The change needs to happen downstream in PCP.
 1. Remove the dependency from Composer
 2. Update plugin usage to check for the `wp_ai_client_prompt()` function
 instead of directly instantiated

 For reference, this how @dkotter handled it for the AI Experiments plugin
 https://github.com/WordPress/ai/pull/242

 Don't believe there's anything we need to do about this in Core, but
 hopefully this will serve as another reminder as to why it's a bad idea to
 treat Feature Plugins as Composer dependencies.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64697#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list