Make WordPress Core


Ignore:
Timestamp:
04/14/2008 07:31:46 PM (18 years ago)
Author:
ryan
Message:

More efficient category and list JS from mdawaffe. fixes #6677 for 2.5

File:
1 edited

Legend:

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

    r7544 r7670  
    1 <?php
     1 <?php
    22$action = isset($action)? $action : '';
    33if ( isset($_GET['message']) )
     
    223223        <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" />
    224224        <?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:categorydiv button" value="<?php _e( 'Add' ); ?>" tabindex="3" />
     225        <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" />
    226226        <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?>
    227227        <span id="category-ajax-response"></span>
     
    234234</ul>
    235235
     236<div id="categories-pop" class="ui-tabs-panel" style="display: none;">
     237    <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" >
     238        <?php $popular_ids = wp_popular_terms_checklist('category'); ?>
     239    </ul>
     240</div>
     241
    236242<div id="categories-all" class="ui-tabs-panel">
    237243    <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
    238         <?php dropdown_categories(); ?>
    239     </ul>
    240 </div>
    241 
    242 <div id="categories-pop" class="ui-tabs-panel" style="display: none;">
    243     <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" >
    244         <?php wp_popular_terms_checklist('category'); ?>
     244        <?php dropdown_categories( 0, 0, $popular_ids ); ?>
    245245    </ul>
    246246</div>
Note: See TracChangeset for help on using the changeset viewer.