Changeset 9028 for trunk/wp-admin/categories.php
- Timestamp:
- 09/29/2008 09:26:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r9016 r9028 12 12 $title = __('Categories'); 13 13 14 wp_reset_vars( array('action', 'cat'));15 16 if ( isset( $_GET['action'] ) && $_GET['action'] == 'delete' && isset($_GET['delete']) )14 wp_reset_vars( array('action', 'cat') ); 15 16 if ( isset( $_GET['action'] ) && isset($_GET['delete']) && ( 'delete' == $_GET['action'] || 'delete' == $_GET['action2'] ) ) 17 17 $action = 'bulk-delete'; 18 18 … … 103 103 default: 104 104 105 if ( !empty($_GET['_wp_http_referer']) ) {106 wp_redirect( remove_query_arg(array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI'])));105 if ( 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']) ) ); 107 107 exit; 108 108 } … … 184 184 </tr> 185 185 </thead> 186 187 <tfoot> 188 <tr> 189 <?php print_column_headers('category', false); ?> 190 </tr> 191 </tfoot> 192 186 193 <tbody id="the-list" class="list:cat"> 187 194 <?php … … 191 198 </table> 192 199 193 </form>194 195 200 <div class="tablenav"> 196 197 201 <?php 198 202 if ( $page_links ) 199 203 echo "<div class='tablenav-pages'>$page_links</div>"; 200 204 ?> 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> 204 220 205 221 </div>
Note: See TracChangeset
for help on using the changeset viewer.