[wp-trac] [WordPress Trac] #26828: Posting a form with "second" "minute" or "hour" as input names throws 404 error
WordPress Trac
noreply at wordpress.org
Tue Jan 14 07:21:43 UTC 2014
#26828: Posting a form with "second" "minute" or "hour" as input names throws 404
error
--------------------------+----------------------
Reporter: New Nine | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: HTTP | Version: 3.8
Severity: trivial | Resolution: invalid
Keywords: |
--------------------------+----------------------
Changes (by johnbillion):
* keywords: needs-patch =>
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
This is because `second`, `minute` and `hour` are reserved query variables
used by WordPress. After submitting your form, WordPress is trying to load
posts from the corresponding date.
You'll need to change the names of your inputs. Best thing would probably
be to prefix them, eg. `my_second` etc.
[http://codex.wordpress.org/WordPress_Query_Vars See here for a list of
reserved query variables].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26828#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list