[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 17:46:05 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:  Query         |     Version:  3.8
 Severity:  trivial       |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------

Comment (by New Nine):

 Replying to [comment:1 johnbillion]:
 > 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].

 I figured that but it's worth noting (IMO) for a patch later on if it's
 possible to not have WordPress check every POST as a potential query,
 particularly when most queries are launched by clicking links and running
 through the permalink system via GET.

 Couldn't find that list of reserved variables - thanks for that!

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


More information about the wp-trac mailing list