Changeset 16008
- Timestamp:
- 10/27/2010 10:43:43 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r15904 r16008 127 127 else 128 128 $query_string = 'page=' . $plugin_page; 129 wp_redirect( 'tools.php?' . $query_string);129 wp_redirect( admin_url('tools.php?' . $query_string) ); 130 130 exit; 131 131 } -
trunk/wp-admin/import.php
r15326 r16008 38 38 39 39 if ( ! empty( $_GET['invalid'] ) && !empty($popular_importers[$_GET['invalid']][3]) ) { 40 wp_redirect( "import.php?import=" . $popular_importers[$_GET['invalid']][3]);40 wp_redirect( admin_url('import.php?import=' . $popular_importers[$_GET['invalid']][3]) ); 41 41 exit; 42 42 } -
trunk/wp-admin/link.php
r14313 r16008 25 25 $linkcheck = $_POST['linkcheck']; 26 26 27 $this_file = 'link-manager.php';27 $this_file = admin_url('link-manager.php'); 28 28 29 29 switch ($action) { -
trunk/wp-admin/media.php
r15830 r16008 49 49 50 50 if ( empty( $_GET['attachment_id'] ) ) { 51 wp_redirect( 'upload.php');51 wp_redirect( admin_url('upload.php') ); 52 52 exit(); 53 53 } … … 119 119 120 120 default: 121 wp_redirect( 'upload.php');121 wp_redirect( admin_url('upload.php') ); 122 122 exit; 123 123 -
trunk/wp-admin/moderation.php
r8645 r16008 9 9 */ 10 10 require_once('../wp-load.php'); 11 wp_redirect( 'edit-comments.php?comment_status=moderated');11 wp_redirect( admin_url('edit-comments.php?comment_status=moderated') ); 12 12 ?> -
trunk/wp-admin/plugin-editor.php
r15853 r16008 68 68 exit; 69 69 } 70 wp_redirect( "plugin-editor.php?file=$file&a=te&scrollto=$scrollto");71 } else { 72 wp_redirect( "plugin-editor.php?file=$file&scrollto=$scrollto");70 wp_redirect( adin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") ); 71 } else { 72 wp_redirect( admin_url("plugin-editor.php?file=$file&scrollto=$scrollto") ); 73 73 } 74 74 exit; … … 88 88 activate_plugin($file, "plugin-editor.php?file=$file&phperror=1", ! empty( $_GET['networkwide'] ) ); // we'll override this later if the plugin can be included without fatal error 89 89 90 wp_redirect( "plugin-editor.php?file=$file&a=te&scrollto=$scrollto");90 wp_redirect( admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") ); 91 91 exit; 92 92 } -
trunk/wp-admin/post.php
r15857 r16008 139 139 140 140 if ( empty( $post_id ) ) { 141 wp_redirect( "post.php");141 wp_redirect( admin_url('post.php') ); 142 142 exit(); 143 143 } … … 266 266 267 267 default: 268 wp_redirect( 'edit.php');268 wp_redirect( admin_url('edit.php') ); 269 269 exit(); 270 270 break; -
trunk/wp-admin/themes.php
r15962 r16008 17 17 check_admin_referer('switch-theme_' . $_GET['template']); 18 18 switch_theme($_GET['template'], $_GET['stylesheet']); 19 wp_redirect( 'themes.php?activated=true');19 wp_redirect( admin_url('themes.php?activated=true') ); 20 20 exit; 21 21 } else if ( 'delete' == $_GET['action'] ) { … … 24 24 wp_die( __( 'Cheatin’ uh?' ) ); 25 25 delete_theme($_GET['template']); 26 wp_redirect( 'themes.php?deleted=true');26 wp_redirect( admin_url('themes.php?deleted=true') ); 27 27 exit; 28 28 } -
trunk/wp-admin/update-core.php
r16002 r16008 432 432 $plugins = (array) $_POST['checked']; 433 433 } else { 434 wp_redirect( 'update-core.php');434 wp_redirect( admin_url('update-core.php') ); 435 435 exit; 436 436 } … … 455 455 $themes = (array) $_POST['checked']; 456 456 } else { 457 wp_redirect( 'update-core.php');457 wp_redirect( admin_url('update-core.php') ); 458 458 exit; 459 459 } -
trunk/wp-admin/update.php
r15867 r16008 71 71 check_admin_referer('activate-plugin_' . $plugin); 72 72 if ( ! isset($_GET['failure']) && ! isset($_GET['success']) ) { 73 wp_redirect( 'update.php?action=activate-plugin&failure=true&plugin=' . $plugin . '&_wpnonce=' . $_GET['_wpnonce']);73 wp_redirect( admin_url('update.php?action=activate-plugin&failure=true&plugin=' . $plugin . '&_wpnonce=' . $_GET['_wpnonce']) ); 74 74 activate_plugin( $plugin, '', ! empty( $_GET['networkwide'] ) ); 75 wp_redirect( 'update.php?action=activate-plugin&success=true&plugin=' . $plugin . '&_wpnonce=' . $_GET['_wpnonce']);75 wp_redirect( admin_url('update.php?action=activate-plugin&success=true&plugin=' . $plugin . '&_wpnonce=' . $_GET['_wpnonce']) ); 76 76 die(); 77 77 } -
trunk/wp-admin/widgets.php
r15132 r16008 176 176 177 177 if ( !in_array($widget_id, $sidebar, true) ) { 178 wp_redirect( 'widgets.php?error=0');178 wp_redirect( admin_url('widgets.php?error=0') ); 179 179 exit; 180 180 } … … 209 209 210 210 wp_set_sidebars_widgets($sidebars_widgets); 211 wp_redirect( 'widgets.php?message=0');211 wp_redirect( admin_url('widgets.php?message=0') ); 212 212 exit; 213 213 } -
trunk/wp-login.php
r16000 r16008 431 431 432 432 if ( is_wp_error($user) ) { 433 wp_redirect( 'wp-login.php?action=lostpassword&error=invalidkey');433 wp_redirect( site_url('wp-login.php?action=lostpassword&error=invalidkey') ); 434 434 exit; 435 435 } … … 485 485 if ( is_multisite() ) { 486 486 // Multisite uses wp-signup.php 487 wp_redirect( apply_filters( 'wp_signup_location', get_bloginfo('wpurl') . '/wp-signup.php') );487 wp_redirect( apply_filters( 'wp_signup_location', site_url('wp-signup.php') ) ); 488 488 exit; 489 489 } 490 490 491 491 if ( !get_option('users_can_register') ) { 492 wp_redirect( 'wp-login.php?registration=disabled');492 wp_redirect( site_url('wp-login.php?registration=disabled') ); 493 493 exit(); 494 494 } -
trunk/wp-register.php
r7991 r16008 11 11 12 12 require('./wp-load.php'); 13 wp_redirect( 'wp-login.php?action=register');13 wp_redirect( site_url('wp-login.php?action=register') ); 14 14 15 15 ?> -
trunk/wp-signup.php
r15315 r16008 24 24 25 25 if ( !is_multisite() ) { 26 wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register");26 wp_redirect( site_url('wp-login.php?action=register') ); 27 27 die(); 28 28 }
Note: See TracChangeset
for help on using the changeset viewer.