[wp-trac] [WordPress Trac] #50976: WordPress stripping out "page" query parameter with 301 redirect

WordPress Trac noreply at wordpress.org
Tue Aug 25 10:18:03 UTC 2020


#50976: WordPress stripping out "page" query parameter with 301 redirect
-----------------------------+----------------------
 Reporter:  aleksihulkkonen  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Rewrite Rules    |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by audrasjb):

 * keywords:  2nd-opinion =>
 * status:  new => closed
 * version:  5.5 =>
 * resolution:   => wontfix
 * milestone:  5.5.1 =>


Comment:

 As per yesterday’s bug scrub, it appears this issue is related to a wrong
 usage of a reserved term.

 Indeed, the `page` query var has a very specific usage in core, and
 there's no way for core to see if any custom code is also using it for
 some other purpose.

 Those using it have an option to disable `redirect_canonical()` for those
 custom requests, or to rename the variable.

 We understand that it may be annoying for themes and plugins authors to
 fix their usage of this variable, but it would introduce a way more issues
 if it was changed on WordPress Core side. It's objectively better to get
 this fixed on plugins and themes since it is a wrong usage of WordPress
 variables.

 Closing this as `wontfix`, as the issue shouldn't be fixed on WordPress
 core but rather on plugins and themes side.

 Feel free to ask for further details, discussion can happens even on
 closed tickets :-)

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


More information about the wp-trac mailing list