Ticket #18722: 18722.no-global.1.diff
File 18722.no-global.1.diff, 1.2 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/class-wp-terms-list-table.php
283 283 } 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 ); 289 289 290 290 $tax = get_taxonomy( $taxonomy ); 291 291 292 $post_type = get_current_screen()->post_type; 292 293 $ptype_object = get_post_type_object( $post_type ); 294 293 295 if ( ! $ptype_object->show_ui ) 294 296 return $count; 295 297 -
wp-admin/includes/screen.php
446 446 $base = $id; 447 447 448 448 // If this is the current screen, see if we can be more accurate for post types and taxonomies. 449 if ( ! $hook_name ) {449 if ( true ) { 450 450 if ( isset( $_REQUEST['post_type'] ) ) 451 451 $post_type = post_type_exists( $_REQUEST['post_type'] ) ? $_REQUEST['post_type'] : false; 452 452 if ( isset( $_REQUEST['taxonomy'] ) )