[wp-trac] [WordPress Trac] #65123: Having a malformed post type query in $_GET or $_POST yields a critical error

WordPress Trac noreply at wordpress.org
Tue Apr 28 06:50:20 UTC 2026


#65123: Having a malformed post type query in $_GET or $_POST yields a critical
error
--------------------------------------+------------------------------
 Reporter:  hheuzebrutc               |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Permalinks                |     Version:  6.9.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by hheuzebrutc):

 Well at first I wasn't touching the URL at all, as mentioned above I was
 making a custom form as a shortcode, with several input fields grouped
 together in an array that happened to have the same name as one of my
 custom post types, something like post_type[input_name]. And no matter
 what I did, WordPress Core always crashed before my form had a chance to
 be processed. I figured it was something to do with query vars and tried
 it with the URL as well. I chose attachments in my example because as far
 as I can tell, it's the only public post type that's guaranteed to do this
 on every WordPress site.

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


More information about the wp-trac mailing list