Make WordPress Core


Ignore:
Timestamp:
04/15/2008 06:00:52 PM (19 years ago)
Author:
ryan
Message:

Demand load the category list. Props mdawaffe. see #6677

File:
1 edited

Legend:

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

    r7669 r7689  
    220220<div id="category-adder" class="wp-hidden-children">
    221221        <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
    222         <p id="category-add" class="wp-hidden-child">
    223                 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" />
    224                 <?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>
    225                 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" />
    226                 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?>
    227                 <span id="category-ajax-response"></span>
    228         </p>
     222        <p id="category-add" class="wp-hidden-child"></p>
    229223</div>
    230224
    231225<ul id="category-tabs">
    232         <li class="ui-tabs-selected"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li>
    233         <li class="wp-no-js-hidden"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>
     226        <li class="ui-tabs-selected"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>
     227        <li class="wp-no-js-hidden"><a id="category-tabs-all" href="edit-form-advanced-tabs.php?post=<?php echo $post_ID; ?>" tabindex="3"><?php _e( 'All Categories' ); ?></a></li>
    234228</ul>
    235229
    236230<div id="categories-pop" class="ui-tabs-panel" style="display: none;">
    237231        <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" >
    238                 <?php $popular_ids = wp_popular_terms_checklist('category'); ?>
    239         </ul>
    240 </div>
    241 
    242 <div id="categories-all" class="ui-tabs-panel">
    243         <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
    244                 <?php dropdown_categories( 0, 0, $popular_ids ); ?>
     232                <?php $popular_ids = wp_popular_terms_checklist('category'); // If we up the # here we have to do so in edit-form-advanced-tabs.php too ?>
    245233        </ul>
    246234</div>
Note: See TracChangeset for help on using the changeset viewer.