[wp-trac] [WordPress Trac] #65094: AI: Prompt construction fails with fatal error when wp_ai_client_default_request_timeout filter returns negative number

WordPress Trac noreply at wordpress.org
Tue Apr 21 13:17:05 UTC 2026


#65094: AI: Prompt construction fails with fatal error when
wp_ai_client_default_request_timeout filter returns negative number
--------------------------------------+--------------------------
 Reporter:  westonruter               |       Owner:  westonruter
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  7.0
Component:  AI                        |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------

Comment (by gaurangsondagar):

 **Patch Testing Report**

 **Patch Tested**: https://core.trac.wordpress.org/ticket/65094

 **Environment:**
 - WordPress: 7.0 RC2
 - PHP: 8.2.x
 - Server: Apache
 - Browser: Chrome
 - OS: Ubuntu

 **Test Summary:**
 - Set up the WordPress Core 7.0 RC2 locally
 - Applied the wp_ai_client_default_request_timeout filter in the theme's
 functions.php and tested the possible cases.


 **Result:**
 **The patch is working as expected**. It has been validated successfully
 and does not produce any fatal errors when applied correctly.

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


More information about the wp-trac mailing list