Changeset 19383 for trunk/wp-admin/includes/class-wp-terms-list-table.php
- Timestamp:
- 11/21/2011 08:44:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-terms-list-table.php
r19089 r19383 284 284 285 285 function column_posts( $tag ) { 286 global $taxonomy , $post_type;286 global $taxonomy; 287 287 288 288 $count = number_format_i18n( $tag->count ); … … 290 290 $tax = get_taxonomy( $taxonomy ); 291 291 292 if ( ! $tax->public ) 292 $post_type = get_current_screen()->post_type; 293 $ptype_object = get_post_type_object( $post_type ); 294 295 if ( ! $ptype_object->show_ui ) 293 296 return $count; 294 297 … … 299 302 } 300 303 301 $args['post_type'] = $post_type; 304 if ( 'post' != $post_type ) 305 $args['post_type'] = $post_type; 302 306 303 307 return "<a href='" . esc_url ( add_query_arg( $args, 'edit.php' ) ) . "'>$count</a>";
Note: See TracChangeset
for help on using the changeset viewer.