Support » Alpha/Beta/RC » Error in /wp-admin/categories.php code

  • Hello All,

    I think that there is an error in the wordpress/wp-admin/categories.php code:

    please replace :
    ===============
    inline_edit_term_row(‘categories’);

    with:
    ==============
    inline_edit_term_row(‘category’);

    Why?
    ==============
    In wp-admin/includes/template.php :
    inline_edit_term_row function and its argument ($type) :
    $type may be ‘category’ and not ‘categories’.

    function inline_edit_term_row($type) {
    .....
    
    <?php if ( 'category' == $type ) : ?>
    
    <label>
    <span class="title"><?php _e( 'Parent' ); ?></span>
    <?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('None'))); ?>
    </label>
    <?php endif; // $type ?>
    
    .....
    }

    As result
    ===========
    By clicking on “Quick Edit” in admin panel=> Categories you will be able to change also the parent category.

  • The topic ‘Error in /wp-admin/categories.php code’ is closed to new replies.