Ticket #27882: dead-code-list-tables.diff
File dead-code-list-tables.diff, 3.6 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/class-wp-media-list-table.php
133 133 $posts_columns['title'] = _x( 'File', 'column name' ); 134 134 $posts_columns['author'] = __( 'Author' ); 135 135 136 $taxonomies = array();137 138 136 $taxonomies = get_taxonomies_for_attachments( 'objects' ); 139 137 $taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' ); 140 138 … … 377 375 $taxonomy = false; 378 376 379 377 if ( $taxonomy ) { 380 $taxonomy_object = get_taxonomy( $taxonomy );381 378 echo '<td ' . $attributes . '>'; 382 379 if ( $terms = get_the_terms( $post->ID, $taxonomy ) ) { 383 380 $out = array(); -
src/wp-admin/includes/class-wp-ms-users-list-table.php
90 90 $super_admins = get_super_admins(); 91 91 $total_admins = count( $super_admins ); 92 92 93 $current_role = false;94 93 $class = $role != 'super' ? ' class="current"' : ''; 95 94 $role_links = array(); 96 95 $role_links['all'] = "<a href='" . network_admin_url('users.php') . "'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>'; -
src/wp-admin/includes/class-wp-posts-list-table.php
272 272 if ( post_type_supports( $post_type, 'author' ) ) 273 273 $posts_columns['author'] = __( 'Author' ); 274 274 275 $taxonomies = array();276 277 275 $taxonomies = get_object_taxonomies( $post_type, 'objects' ); 278 276 $taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' ); 279 277 -
src/wp-admin/includes/class-wp-terms-list-table.php
161 161 // convert it to table rows 162 162 $count = 0; 163 163 164 $terms = array();165 166 164 if ( is_taxonomy_hierarchical( $taxonomy ) && !isset( $orderby ) ) { 167 165 // We'll need the full set of terms then. 168 166 $args['number'] = $args['offset'] = 0; … … 189 187 $terms = get_terms( $taxonomy, $args ); 190 188 foreach ( $terms as $term ) 191 189 $this->single_row( $term ); 192 $count = $number; // Only displaying a single page.193 190 } 194 191 } 195 192 -
src/wp-admin/includes/class-wp-users-list-table.php
147 147 $avail_roles =& $users_of_blog['avail_roles']; 148 148 unset($users_of_blog); 149 149 150 $current_role = false;151 150 $class = empty($role) ? ' class="current"' : ''; 152 151 $role_links = array(); 153 152 $role_links['all'] = "<a href='$url'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>'; … … 158 157 $class = ''; 159 158 160 159 if ( $this_role == $role ) { 161 $current_role = $role;162 160 $class = ' class="current"'; 163 161 } 164 162