WordPress.org

Make WordPress Core

Changeset 18771


Ignore:
Timestamp:
09/24/11 20:26:51 (3 years ago)
Author:
duck_
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-terms-list-table.php

    r18247 r18771  
    324324     */ 
    325325    function inline_edit() { 
    326         global $tax; 
     326        global $post_type, $tax; 
    327327 
    328328        if ( ! current_user_can( $tax->cap->edit_terms ) ) 
     
    370370            <?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?> 
    371371            <input type="hidden" name="taxonomy" value="<?php echo esc_attr( $tax->name ); ?>" /> 
     372            <input type="hidden" name="post_type" value="<?php echo esc_attr( $post_type ); ?>" /> 
    372373            <br class="clear" /> 
    373374        </p> 
Note: See TracChangeset for help on using the changeset viewer.