[wp-trac] [WordPress Trac] #44965: WordPress Core strips $_GET['error'] occasionally

WordPress Trac noreply at wordpress.org
Mon Jan 14 05:20:32 UTC 2019


#44965: WordPress Core strips $_GET['error'] occasionally
----------------------------------------+-----------------------------
 Reporter:  javorszky                   |       Owner:  SergeyBiryukov
     Type:  defect (bug)                |      Status:  accepted
 Priority:  normal                      |   Milestone:  5.1
Component:  Query                       |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------------

Comment (by pento):

 @SergeyBiryukov: Why the `unset( $this->query_vars['error'] )`? It seems
 like the original purpose ([1570]) was that `WP_Query` would generate a
 404 if the `error` query var was not an empty string. `WP_Query` now only
 generates a 404 if the `error` query var is set to `'404'`.

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


More information about the wp-trac mailing list