Make WordPress Core


Ignore:
Timestamp:
02/05/2008 07:45:40 AM (17 years ago)
Author:
ryan
Message:

Add beginnings of bulk tag delete. see #5684

File:
1 edited

Legend:

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

    r6726 r6727  
    6868
    6969wp_enqueue_script( 'admin-tags' );
     70wp_enqueue_script('admin-forms');
     71
    7072require_once ('admin-header.php');
    7173
     
    8284
    8385<div class="wrap">
     86
     87<form id="tags-filter" action="" method="get">
    8488<?php if ( current_user_can('manage_categories') ) : ?>
    8589    <h2><?php printf(__('Tags (<a href="%s">add new</a>)'), '#addtag') ?> </h2>
     
    8791    <h2><?php _e('Tags') ?> </h2>
    8892<?php endif; ?>
     93    <p id="tag-search">
     94        <input type="text" id="tag-search-input" name="s" value="<?php echo attribute_escape( stripslashes( $_GET[ 's' ]) ); ?>" />
     95        <input type="submit" value="<?php _e( 'Search Tags' ); ?>" />
     96    </p>
     97</form>
    8998
    90 <form name="searchform" id="searchform" action="" method="get">
    91     <input type="text" name="s" id="s" value="<?php echo attribute_escape( stripslashes( $_GET[ 's' ]) ); ?>" size="17" />
    92     <input type="submit" id="post-query-submit" value="<?php _e('Search Tags'); ?>" class="button" />
    93 </form>
    9499<br style="clear:both;" />
    95100
    96 
     101<form name="deletetags" id="deletetags" action="" method="post">
     102<?php wp_nonce_field('bulk-tags'); ?>
    97103<table class="widefat">
    98104    <thead>
    99105    <tr>
     106        <th scope="col" style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById('deletetags'));" /></th>
    100107        <th scope="col" style="text-align: center"><?php _e('ID') ?></th>
    101108        <th scope="col"><?php _e('Name') ?></th>
     
    116123    </tbody>
    117124</table>
     125</form>
    118126<?php
    119127
Note: See TracChangeset for help on using the changeset viewer.