Opened 12 years ago
Closed 12 years ago
#25270 closed defect (bug) (fixed)
Search form on wp-admin/themes.php page has a lot of extra parameters in referer field
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
Do a search on the wp-admin/themes.php page to search amongst installed themes.
The first URL you get will be like this:
Hit Search again, to get this new URL:
And so on:
That form should probably be a POST, not a GET. Changing it to POST shows no ill effects for me.
Attachments (3)
Change History (7)
#1
@
12 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 3.7
- Version changed from trunk to 3.4
Introduced in [19887].
We've had some issues with changing GET to POST in the past and had to go back (#16335, #18094).
Perhaps it's an edge case, but changing to POST here will re-introduce an issue similar to the one in #18094 for no-JS. Searching and filtering would be broken when navigating between pages if there are more themes found than the default per_page
limit, which is 36 ([21768]).
An alternative solution would be to reset $_SERVER['REQUEST_URI']
to avoid the pollution of _wp_http_referer
. We already do that in plugins.php
and several other files: tags/3.6/wp-admin/plugins.php#L23.
See 25270.2.diff.
#2
@
12 years ago
- Summary changed from Search form on wp-admin/themes.php page should be POST instead of GET to Search form on wp-admin/themes.php page has a lot of extra parameters in referer field
That would work too. +1
change get to post