[wp-trac] [WordPress Trac] #31781: Adding a query parameter that has same name as a CPT returns 404

WordPress Trac noreply at wordpress.org
Thu Mar 26 22:34:41 UTC 2015


#31781: Adding a query parameter that has same name as a CPT returns 404
-------------------------------+-----------------------------
 Reporter:  Collizo4sky        |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  4.1.1
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 I have a CPT called ''demo'' and my payment processor for my shop pass add
 a demo GET parameter (which i used to confirm if payment was made from a
 sandbox account) to the callback/return url which leads to 404.

 Eg

 Say my website is xyz.com and has a CPT demo

 A url of this nature ''http://xyz.com/page-slug/?demo=Y'' will leads to a
 404

 I was able to trace the bug to wp-includes/post.php Line 1413 to 1416 (i
 might be wrong though)


 I don't fully understand the core code in that file hence i couldn't
 provide a patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31781>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list