[wp-trac] [WordPress Trac] #21016: Quick Edit removes custom added edit columns on save

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 18 22:28:00 UTC 2012


#21016: Quick Edit removes custom added edit columns on save
-----------------------------+----------------------
 Reporter:  sillybean        |       Owner:
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Quick/Bulk Edit  |     Version:  3.3
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |
-----------------------------+----------------------

Comment (by nacin):

 {{{
                 if ( 'page' == $post_type )
                         $posts_columns = apply_filters(
 'manage_pages_columns', $posts_columns );
                 else
                         $posts_columns = apply_filters(
 'manage_posts_columns', $posts_columns, $post_type );
                 $posts_columns = apply_filters(
 "manage_{$post_type}_posts_columns", $posts_columns );
 }}}

 manage_posts_columns passes $post_type. manage_{$post_type}_posts_columns
 should as well, but that could at least be gleaned from current_filter().
 If anyone wants to open a new ticket advocating for the new argument, that
 seems fine for 3.5.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21016#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list