Ticket #15558: 15558.hide.posts.col.patch
| File 15558.hide.posts.col.patch, 932 bytes (added by , 15 years ago) |
|---|
-
wp-admin/includes/class-wp-users-list-table.php
149 149 } 150 150 151 151 function get_columns() { 152 returnarray(152 $c = array( 153 153 'cb' => '<input type="checkbox" />', 154 154 'username' => __( 'Username' ), 155 155 'name' => __( 'Name' ), … … 157 157 'role' => __( 'Role' ), 158 158 'posts' => __( 'Posts' ) 159 159 ); 160 161 if ( $this->is_site_users ) 162 unset( $c['posts'] ); 163 164 return $c; 160 165 } 161 166 162 167 function get_sortable_columns() { 163 returnarray(168 $c = array( 164 169 'username' => 'login', 165 170 'name' => 'name', 166 171 'email' => 'email', 167 172 'posts' => 'post_count', 168 173 ); 174 175 if ( $this->is_site_users ) 176 unset( $c['posts'] ); 177 178 return $c; 169 179 } 170 180 171 181 function display_rows() {