Changeset 6848
- Timestamp:
- 02/14/2008 09:26:40 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tags.php
r6800 r6848 6 6 7 7 wp_reset_vars(array('action', 'tag')); 8 9 if ( isset($_GET['deleteit']) && isset($_GET['delete_tags']) ) 10 $action = 'bulk-delete'; 8 11 9 12 switch($action) { … … 45 48 wp_die(__('Cheatin’ uh?')); 46 49 47 $tags = $_ POST['delete_tags'];48 foreach( $tags as $tag_ID ) {49 50 $tags = $_GET['delete_tags']; 51 foreach( (array) $tags as $tag_ID ) { 52 wp_delete_term( $tag_ID, 'post_tag'); 50 53 } 51 54 … … 137 140 138 141 <div style="float: left"> 139 <input type="button" value="<?php _e('Delete'); ?>" name="deleteit" /> 142 <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" /> 143 <?php wp_nonce_field('bulk-tags'); ?> 140 144 </div> 141 145 142 146 <br style="clear:both;" /> 143 147 </div> 144 </form>145 148 146 149 <br style="clear:both;" /> 147 150 148 <form name="deletetags" id="deletetags" action="" method="post">149 <?php wp_nonce_field('bulk-tags'); ?>150 151 <input type="hidden" name="action" value="bulk-delete" /> 151 152 <table class="widefat"> 152 153 <thead> 153 154 <tr> 154 <th scope="col" style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById(' deletetags'));" /></th>155 <th scope="col" style="text-align: center"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th> 155 156 <th scope="col"><?php _e('Name') ?></th> 156 157 <th scope="col" width="90" style="text-align: center"><?php _e('Posts') ?></th> … … 166 167 </tbody> 167 168 </table> 168 <p class="submit"><input type="submit" class="button" name="deletetags" id="deletetags" value="<?php _e('Delete Checked Tags »') ?>" onclick="return confirm('<?php echo js_escape(__("You are about to delete these tags permanently.\n'Cancel' to stop, 'OK' to delete.")); ?>')" /></p>169 169 </form> 170 171 <br style="clear:both;" /> 170 172 171 173 <div class="tablenav">
Note: See TracChangeset
for help on using the changeset viewer.