[wp-trac] [WordPress Trac] #41893: Add URL filter in posts list table get_edit_link()

WordPress Trac noreply at wordpress.org
Fri Sep 15 19:58:57 UTC 2017


#41893: Add URL filter in posts list table get_edit_link()
----------------------------+-----------------------------
 Reporter:  GunGeekATX      |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 In `get_edit_link()` in the WP_Posts_List_Table class, the URL to edit.php
 is hard-coded and is not filterable.  I'm currently working on a project
 that has complex filtering and the client wants to maintain the filters as
 they click through to different statuses.

 Currently, the only way to update just the URL to edit.php is to use the
 `"views_{$this->screen->id}"` filter, use regex to find the URL in the
 markup, then update the URL in the markup as-needed.  The proposed
 `wp_posts_list_table_edit_url` filter would allow filtering of the
 generated URL separate from the markup.

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


More information about the wp-trac mailing list