Use correct post_type in HTML returned by inline-save-tax AJAX. Fixes #18038.

git-svn-id: https://develop.svn.wordpress.org/trunk@18771 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave 2011-09-24 20:26:51 +00:00
parent 57768a1a80
commit 3c4d0639ae

View File

@ -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 {
<span class="error" style="display:none;"></span>
<?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?>
<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $tax->name ); ?>" />
<input type="hidden" name="post_type" value="<?php echo esc_attr( $post_type ); ?>" />
<br class="clear" />
</p>
</td></tr>