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/edit-tags.php

    r9016 r9028  
    1212$title = __('Tags');
    1313
    14 wp_reset_vars(array('action', 'tag'));
    15 
    16 if ( isset( $_GET['action'] ) && $_GET['action'] == 'delete' && isset($_GET['delete_tags']) )
     14wp_reset_vars( array('action', 'tag') );
     15
     16if ( isset( $_GET['action'] ) && isset($_GET['delete_tags']) && ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) )
    1717    $action = 'bulk-delete';
    1818
     
    108108default:
    109109
    110 if ( !empty($_GET['_wp_http_referer']) ) {
    111      wp_redirect(remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));
     110if ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
     111     wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
    112112     exit;
    113113}
     
    188188    </tr>
    189189    </thead>
     190
     191    <tfoot>
     192    <tr>
     193<?php print_column_headers('tag', false); ?>
     194    </tr>
     195    </tfoot>
     196
    190197    <tbody id="the-list" class="list:tag">
    191198<?php
     
    198205</table>
    199206
    200 </form>
    201 
    202207<div class="tablenav">
    203 
    204208<?php
    205209if ( $page_links )
    206210    echo "<div class='tablenav-pages'>$page_links</div>";
    207211?>
    208 <br class="clear" />
    209 </div>
    210 <br class="clear" />
     212
     213<div class="alignleft">
     214<select name="action2">
     215<option value="" selected><?php _e('Actions'); ?></option>
     216<option value="delete"><?php _e('Delete'); ?></option>
     217</select>
     218<input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
     219</div>
     220
     221<br class="clear" />
     222</div>
     223
     224<br class="clear" />
     225</form>
    211226
    212227</div>
Note: See TracChangeset for help on using the changeset viewer.