WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/10/2008 10:42:49 PM (14 years ago)
Author:
matt
Message:

Fixes to category list saving. Hat tip: mdawaffe. Fixes #5631

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r6591 r6597  
    128128        <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" />
    129129        <?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category') ) ); ?>
    130         <a id="category-add-sumbit" class="add:categorychecklist:categorydiv button" href="<?php echo wp_nonce_url( '', 'add-category' ); ?>"><?php _e( 'Add' ); ?></a>
     130        <input type="button" id="category-add-sumbit" class="add:categorychecklist:categorydiv button" value="<?php _e( 'Add' ); ?>" />
     131        <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?>
    131132        <span id="category-ajax-response"></span>
    132133    </p>
     
    135136<ul id="category-tabs">
    136137    <li class="ui-tabs-selected"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
    137     <li><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
     138    <li class="wp-no-js-hidden"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
    138139</ul>
    139140
     
    144145</div>
    145146
    146 <div id="categories-pop" class="ui-tabs-panel">
     147<div id="categories-pop" class="ui-tabs-panel" style="display: none;">
    147148    <ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
    148149        <?php wp_popular_categories_checklist(); ?>
Note: See TracChangeset for help on using the changeset viewer.