Changeset 9294
- Timestamp:
- 10/23/2008 12:08:42 AM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r9233 r9294 95 95 wp_die(__('Cheatin’ uh?')); 96 96 97 $location = 'categories.php'; 98 if ( $referer = wp_get_original_referer() ) { 99 if ( false !== strpos($referer, 'categories.php') ) 100 $location = $referer; 101 } 102 97 103 if ( wp_update_category($_POST) ) 98 wp_redirect('categories.php?message=3');104 $location = add_query_arg('message', 3, $location); 99 105 else 100 wp_redirect('categories.php?message=5'); 106 $location = add_query_arg('message', 5, $location); 107 108 wp_redirect($location); 101 109 102 110 exit; -
trunk/wp-admin/edit-category-form.php
r9032 r9294 62 62 <input type="hidden" name="action" value="<?php echo $action ?>" /> 63 63 <input type="hidden" name="cat_ID" value="<?php echo $category->term_id ?>" /> 64 <?php wp_ nonce_field($nonce_action); ?>64 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field($nonce_action); ?> 65 65 <table class="form-table"> 66 66 <tr class="form-field form-required">
Note: See TracChangeset
for help on using the changeset viewer.