[wp-trac] [WordPress Trac] #38194: Term order and current page is lost when bulk deleting terms

WordPress Trac noreply at wordpress.org
Thu Sep 29 21:37:34 UTC 2016


#38194: Term order and current page is lost when bulk deleting terms
--------------------------+-----------------------------
 Reporter:  ocean90       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------

Comment (by ocean90):

 [attachment:38194.patch]:

 * Removes special handling for `edit-tags.php` which is no longer required
 because of `term.php`. Related: [34202], [36308]
 * Sets `$referer` to `$_SERVER['REQUEST_URI']` because `wp_get_referer()`
 returns false if `$_SERVER['REQUEST_URI'] ===
 $_REQUEST['_wp_http_referer']`.
 * Sets `paged` always to `$pagenum` which is the value of
 `$wp_list_table->get_pagenum();`. This avoids an additional redirect when
 you delete an item which was previously on the last page.

 @swissspidy Since you introduced `term.php`, how does
 [attachment:38194.patch] look to you?


 Semi-related: #37573

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


More information about the wp-trac mailing list