From 53f5e8344eacda9081fa49bdb4a9e5268e04cd70 Mon Sep 17 00:00:00 2001 From: duck_ Date: Sat, 24 Sep 2011 20:26:51 +0000 Subject: [PATCH] Use correct post_type in HTML returned by inline-save-tax AJAX. Fixes #18038. git-svn-id: http://svn.automattic.com/wordpress/trunk@18771 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-terms-list-table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php index 7778d8862c..df8419b22f 100644 --- a/wp-admin/includes/class-wp-terms-list-table.php +++ b/wp-admin/includes/class-wp-terms-list-table.php @@ -323,7 +323,7 @@ class WP_Terms_List_Table extends WP_List_Table { * @since 3.1.0 */ function inline_edit() { - global $tax; + global $post_type, $tax; if ( ! current_user_can( $tax->cap->edit_terms ) ) return; @@ -369,6 +369,7 @@ class WP_Terms_List_Table extends WP_List_Table { +