[wp-trac] Re: [WordPress Trac] #9002: Custom columns not populated for user edit screen

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 3 19:47:04 GMT 2009

#9002: Custom columns not populated for user edit screen
 Reporter:  PeteHoliday     |        Owner:  anonymous
     Type:  defect (bug)    |       Status:  new      
 Priority:  normal          |    Milestone:  2.7.1    
Component:  Administration  |      Version:  2.7      
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
Changes (by PeteHoliday):

  * milestone:  2.8 => 2.7.1


 I took a look at this function in the 2.71 beta and decided to see if I
 could make this work. Because of the way this function operates (by
 returning a value rather than outputting directly), it seems that this
 needs to be done with a filter.

 If the following code is added after line 1871 in wp-
 admin/includes/template.php, the missing functionality is restored:

         $custom_column = array(
                 'column_name'  => $column_name,
                 'user_id'      => $user_object->ID,
                 'contents'     => ''
         $custom_column = apply_filters('manage_users_custom_column',
         $r .= "<td>{$custom_column[contents]}</td>";

 I'm not sure what the procedure is for submitting this change for
 inclusion in 2.7.1 or a future version.

 '''Note:''' the initial break; statement is required to end the 'posts'
 case and is included intentionally.

Ticket URL: <http://trac.wordpress.org/ticket/9002#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list