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

WordPress Trac noreply at wordpress.org
Sat Feb 15 13:02:43 UTC 2020


#41893: Add URL filter in posts list table get_edit_link()
------------------------------------------------+--------------------------
 Reporter:  GunGeekATX                          |       Owner:  (none)
     Type:  enhancement                         |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
                                                |  Review
Component:  Posts, Post Types                   |     Version:  4.9
 Severity:  normal                              |  Resolution:
 Keywords:  has-patch 2nd-opinion dev-feedback  |     Focuses:
                                                |  administration
------------------------------------------------+--------------------------
Changes (by valentinbora):

 * keywords:   => has-patch 2nd-opinion dev-feedback
 * focuses:   => administration
 * component:  Administration => Posts, Post Types


Comment:

 Thanks for the ticket and the patch @GunGeekATX. It still seems to apply
 cleanly onto [47293] so that's great!

 I've tried the filter out and it seems alright. Further, I'm looking
 forward to other opinions from Core folks regarding the opportunity as
 well as the naming of the filter hook and actual implementation.

 Here are some sample parameters coming into the filter function for Posts:

 {{{
 Array
 (
     [0] => edit.php?post_type=post
     [1] => Array
         (
             [post_type] => post
         )

 )

 Array
 (
     [0] => edit.php?post_status=publish&post_type=post
     [1] => Array
         (
             [post_status] => publish
             [post_type] => post
         )

 )

 Array
 (
     [0] => edit.php?post_status=draft&post_type=post
     [1] => Array
         (
             [post_status] => draft
             [post_type] => post
         )

 )
 }}}

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


More information about the wp-trac mailing list