mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
Go back to $post_type global as get_current_screen()->post_type is empty during add/edit-tag AJAX requests. Fixes #18722.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4cd52de33b
commit
84b34160fa
@ -283,15 +283,13 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||
}
|
||||
|
||||
function column_posts( $tag ) {
|
||||
global $taxonomy;
|
||||
global $taxonomy, $post_type;
|
||||
|
||||
$count = number_format_i18n( $tag->count );
|
||||
|
||||
$tax = get_taxonomy( $taxonomy );
|
||||
|
||||
$post_type = get_current_screen()->post_type;
|
||||
$ptype_object = get_post_type_object( $post_type );
|
||||
|
||||
if ( ! $ptype_object->show_ui )
|
||||
return $count;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user