Make WordPress Core


Ignore:
Timestamp:
09/29/2008 09:26:21 AM (16 years ago)
Author:
azaozz
Message:

Add table footers and action selects at the bottom

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.php

    r9016 r9028  
    1212$title = __('Categories');
    1313
    14 wp_reset_vars(array('action', 'cat'));
    15 
    16 if ( isset( $_GET['action'] ) && $_GET['action'] == 'delete' && isset($_GET['delete']) )
     14wp_reset_vars( array('action', 'cat') );
     15
     16if ( isset( $_GET['action'] ) && isset($_GET['delete']) && ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) )
    1717    $action = 'bulk-delete';
    1818
     
    103103default:
    104104
    105 if ( !empty($_GET['_wp_http_referer']) ) {
    106      wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));
     105if ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
     106     wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
    107107     exit;
    108108}
     
    184184    </tr>
    185185    </thead>
     186
     187    <tfoot>
     188    <tr>
     189<?php print_column_headers('category', false); ?>
     190    </tr>
     191    </tfoot>
     192
    186193    <tbody id="the-list" class="list:cat">
    187194<?php
     
    191198</table>
    192199
    193 </form>
    194 
    195200<div class="tablenav">
    196 
    197201<?php
    198202if ( $page_links )
    199203    echo "<div class='tablenav-pages'>$page_links</div>";
    200204?>
    201 <br class="clear" />
    202 </div>
    203 <br class="clear" />
     205
     206<div class="alignleft">
     207<select name="action2">
     208<option value="" selected><?php _e('Actions'); ?></option>
     209<option value="delete"><?php _e('Delete'); ?></option>
     210</select>
     211<input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
     212<?php wp_nonce_field('bulk-categories'); ?>
     213</div>
     214
     215<br class="clear" />
     216</div>
     217
     218<br class="clear" />
     219</form>
    204220
    205221</div>
Note: See TracChangeset for help on using the changeset viewer.