Changeset 16847
- Timestamp:
- 12/09/2010 06:02:54 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r16412 r16847 179 179 wp_die(__('You are not allowed to import.')); 180 180 181 if ( validate_file($importer) ) 181 if ( validate_file($importer) ) { 182 182 wp_redirect( admin_url( 'import.php?invalid=' . $importer ) ); 183 exit; 184 } 183 185 184 186 // Allow plugins to define importers as well 185 187 if ( !isset($wp_importers) || !isset($wp_importers[$importer]) || ! is_callable($wp_importers[$importer][2])) { 186 if (! file_exists(ABSPATH . "wp-admin/import/$importer.php")) 188 if (! file_exists(ABSPATH . "wp-admin/import/$importer.php")) { 187 189 wp_redirect( admin_url( 'import.php?invalid=' . $importer ) ); 190 exit; 191 } 188 192 include(ABSPATH . "wp-admin/import/$importer.php"); 189 193 } -
trunk/wp-admin/includes/ms.php
r16833 r16847 508 508 if ( is_object( $blog ) ) { 509 509 wp_redirect( get_admin_url( $blog->blog_id, '?c=' . $c ) ); // redirect and count to 5, "just in case" 510 exit;511 510 } else { 512 511 wp_redirect( user_admin_url( '?c=' . $c ) ); // redirect and count to 5, "just in case" 513 512 } 514 515 wp_die( __( 'You do not have sufficient permissions to access this page.' ) ); 513 exit; 516 514 } 517 515 add_action( 'admin_page_access_denied', 'redirect_user_to_blog', 99 ); -
trunk/wp-admin/link-manager.php
r16776 r16847 30 30 31 31 wp_redirect( add_query_arg('deleted', count( $bulklinks ), admin_url( 'link-manager.php' ) ) ); 32 exit; 32 33 } 33 34 } elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) { -
trunk/wp-admin/media-upload.php
r16661 r16847 56 56 57 57 wp_redirect( admin_url($location) ); 58 exit; 58 59 } 59 60 -
trunk/wp-admin/moderation.php
r16008 r16847 10 10 require_once('../wp-load.php'); 11 11 wp_redirect( admin_url('edit-comments.php?comment_status=moderated') ); 12 exit; 12 13 ?> -
trunk/wp-admin/ms-admin.php
r15481 r16847 11 11 12 12 wp_redirect( network_admin_url() ); 13 exit; 14 ?> -
trunk/wp-admin/ms-edit.php
r15481 r16847 11 11 12 12 wp_redirect( network_admin_url() ); 13 exit; 14 ?> -
trunk/wp-admin/ms-sites.php
r15481 r16847 11 11 12 12 wp_redirect( network_admin_url('sites.php') ); 13 exit; 14 15 ?> -
trunk/wp-admin/ms-themes.php
r15481 r16847 11 11 12 12 wp_redirect( network_admin_url('themes.php') ); 13 exit; 14 ?> -
trunk/wp-admin/ms-upgrade-network.php
r15481 r16847 11 11 12 12 wp_redirect( network_admin_url('upgrade.php') ); 13 exit; 14 15 ?> -
trunk/wp-admin/ms-users.php
r15481 r16847 11 11 12 12 wp_redirect( network_admin_url('users.php') ); 13 exit; 14 ?> -
trunk/wp-admin/network/admin.php
r16272 r16847 16 16 wp_die( __( 'Multisite support is not enabled.' ) ); 17 17 18 if ( ! is_main_site() ) 18 if ( ! is_main_site() ) { 19 19 wp_redirect( network_admin_url() ); 20 20 exit; 21 } 21 22 ?> -
trunk/wp-admin/network/edit.php
r16774 r16847 14 14 wp_die( __( 'Multisite support is not enabled.' ) ); 15 15 16 if ( empty( $_GET['action'] ) ) 16 if ( empty( $_GET['action'] ) ) { 17 17 wp_redirect( admin_url( 'index.php' ) ); 18 exit; 19 } 18 20 19 21 function confirm_delete_users( $users ) { -
trunk/wp-admin/network/site-info.php
r16833 r16847 59 59 restore_current_blog(); 60 60 wp_redirect( add_query_arg( array( 'update' => 'updated', 'id' => $id ), 'site-info.php') ); 61 exit; 61 62 } 62 63 -
trunk/wp-admin/network/site-options.php
r16833 r16847 49 49 restore_current_blog(); 50 50 wp_redirect( add_query_arg( array( 'update' => 'updated', 'id' => $id ), 'site-options.php') ); 51 exit; 51 52 } 52 53 -
trunk/wp-admin/plugin-editor.php
r16747 r16847 71 71 72 72 wp_redirect(add_query_arg('_wpnonce', wp_create_nonce('edit-plugin-test_' . $file), "plugin-editor.php?file=$file&liveupdate=1&scrollto=$scrollto&networkwide=" . $network_wide)); 73 exit;74 73 } 75 74 wp_redirect( self_admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") ); -
trunk/wp-admin/post.php
r16008 r16847 86 86 87 87 wp_redirect( apply_filters( 'redirect_post_location', $location, $post_id ) ); 88 exit; 88 89 } 89 90 … … 266 267 267 268 default: 268 269 wp_redirect( admin_url('edit.php') ); 269 270 exit(); 270 271 break; -
trunk/wp-admin/update-core.php
r16747 r16847 367 367 dismiss_core_update( $update ); 368 368 wp_redirect( wp_nonce_url('update-core.php?action=upgrade-core', 'upgrade-core') ); 369 exit; 369 370 } 370 371 … … 377 378 undismiss_core_update( $version, $locale ); 378 379 wp_redirect( wp_nonce_url('update-core.php?action=upgrade-core', 'upgrade-core') ); 380 exit; 379 381 } 380 382 -
trunk/wp-admin/user/admin.php
r15879 r16847 12 12 require_once( dirname(dirname(__FILE__)) . '/admin.php'); 13 13 14 if ( ! is_main_site() ) 14 if ( ! is_main_site() ) { 15 15 wp_redirect( user_admin_url() ); 16 16 exit; 17 } 17 18 ?> -
trunk/wp-atom.php
r9158 r16847 9 9 require( './wp-load.php' ); 10 10 wp_redirect( get_bloginfo( 'atom_url' ), 301 ); 11 11 exit; 12 12 ?> -
trunk/wp-comments-post.php
r14473 r16847 102 102 103 103 wp_redirect($location); 104 104 exit; 105 105 ?> -
trunk/wp-commentsrss2.php
r9158 r16847 9 9 require( './wp-load.php' ); 10 10 wp_redirect( get_bloginfo( 'comments_rss2_url' ), 301 ); 11 11 exit; 12 12 ?> -
trunk/wp-feed.php
r14162 r16847 9 9 require( './wp-load.php' ); 10 10 wp_redirect( get_bloginfo( get_default_feed() . '_url' ), 301 ); 11 11 exit; 12 12 ?> -
trunk/wp-pass.php
r11022 r16847 17 17 18 18 wp_safe_redirect(wp_get_referer()); 19 exit; 19 20 ?> -
trunk/wp-rdf.php
r9158 r16847 9 9 require( './wp-load.php' ); 10 10 wp_redirect( get_bloginfo( 'rdf_url' ), 301 ); 11 11 exit; 12 12 ?> -
trunk/wp-register.php
r16008 r16847 12 12 require('./wp-load.php'); 13 13 wp_redirect( site_url('wp-login.php?action=register') ); 14 14 exit; 15 15 ?> -
trunk/wp-rss.php
r9158 r16847 9 9 require( './wp-load.php' ); 10 10 wp_redirect( get_bloginfo( 'rss_url' ), 301 ); 11 11 exit; 12 12 ?> -
trunk/wp-rss2.php
r9158 r16847 9 9 require( './wp-load.php' ); 10 10 wp_redirect( get_bloginfo( 'rss2_url' ), 301 ); 11 11 exit; 12 12 ?>
Note: See TracChangeset
for help on using the changeset viewer.