Opened 8 years ago
Closed 8 years ago
#39328 closed defect (bug) (fixed)
Adding terms without AJAX strips "taxonomy" query arg
Reported by: | szaqal21 | Owned by: | peterwilsoncc |
---|---|---|---|
Milestone: | 4.7.1 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Taxonomy | Keywords: | has-patch fixed-major commit |
Focuses: | Cc: |
Description
I've wrote a plugin which disables AJAX for managment of taxonomy terms and I think I've found a bug. If I add new term for taxonomy "category", browser is being redirected to edit-tags.php widthout "taxonomy=category" arg. After some search in core I've found that redirect location is being set wrong - I think. Line 84 in edit-tags.php
<?php $location = add_query_arg( 'message', 1, $location );
uses $location as url, shouldn't it be $referer as other actions do? $location at this point equals to false.
Attachments (1)
Change History (6)
#2
@
8 years ago
- Keywords has-patch added; needs-patch removed
- Owner set to peterwilsoncc
- Status changed from new to accepted
Confirmed as a regression, 39328.diff uses fix suggested by szaqal21.
Note: See
TracTickets for help on using
tickets.
I could reproduce this.
At first glance, looks like regression following [38750], putting on the 4.7.1 milestone for follow up.