[wp-trac] [WordPress Trac] #39328: Adding terms without AJAX strips "taxonomy" query arg

WordPress Trac noreply at wordpress.org
Mon Dec 19 08:04:10 UTC 2016


#39328: Adding terms without AJAX strips "taxonomy" query arg
--------------------------+-----------------------------
 Reporter:  szaqal21      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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
 <?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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39328>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list