Changeset 19579 for trunk/wp-admin/network/sites.php
- Timestamp:
- 12/10/2011 06:26:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/sites.php
r19514 r19579 64 64 if ( $id != '0' && $id != $current_site->blog_id && current_user_can( 'delete_site', $id ) ) { 65 65 wpmu_delete_blog( $id, true ); 66 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'delete' ), wp_get_referer() ) );66 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'delete' ), wp_get_referer() ) ); 67 67 } else { 68 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'not_deleted' ), wp_get_referer() ) );68 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'not_deleted' ), wp_get_referer() ) ); 69 69 } 70 70 … … 111 111 } 112 112 113 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => $blogfunction ), wp_get_referer() ) );113 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $blogfunction ), wp_get_referer() ) ); 114 114 } else { 115 115 wp_redirect( network_admin_url( 'sites.php' ) ); … … 124 124 125 125 update_blog_status( $id, 'archived', '1' ); 126 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'archive' ), wp_get_referer() ) );126 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'archive' ), wp_get_referer() ) ); 127 127 exit(); 128 128 break; … … 134 134 135 135 update_blog_status( $id, 'archived', '0' ); 136 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unarchive' ), wp_get_referer() ) );136 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unarchive' ), wp_get_referer() ) ); 137 137 exit(); 138 138 break; … … 145 145 update_blog_status( $id, 'deleted', '0' ); 146 146 do_action( 'activate_blog', $id ); 147 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'activate' ), wp_get_referer() ) );147 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'activate' ), wp_get_referer() ) ); 148 148 exit(); 149 149 break; … … 156 156 do_action( 'deactivate_blog', $id ); 157 157 update_blog_status( $id, 'deleted', '1' ); 158 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'deactivate' ), wp_get_referer() ) );158 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'deactivate' ), wp_get_referer() ) ); 159 159 exit(); 160 160 break; … … 166 166 167 167 update_blog_status( $id, 'spam', '0' ); 168 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unspam' ), wp_get_referer() ) );168 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unspam' ), wp_get_referer() ) ); 169 169 exit(); 170 170 break; … … 176 176 177 177 update_blog_status( $id, 'spam', '1' ); 178 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'spam' ), wp_get_referer() ) );178 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'spam' ), wp_get_referer() ) ); 179 179 exit(); 180 180 break; … … 186 186 187 187 update_blog_status( $id, 'mature', '0' ); 188 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unmature' ), wp_get_referer() ) );188 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unmature' ), wp_get_referer() ) ); 189 189 exit(); 190 190 break; … … 196 196 197 197 update_blog_status( $id, 'mature', '1' ); 198 wp_ redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'mature' ), wp_get_referer() ) );198 wp_safe_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'mature' ), wp_get_referer() ) ); 199 199 exit(); 200 200 break;
Note: See TracChangeset
for help on using the changeset viewer.