Ticket #592: redirect.diff
| File redirect.diff, 4.1 KB (added by solvingnormal, 7 years ago) |
|---|
-
wp-pass.php
7 7 // 10 days 8 8 setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH); 9 9 10 header('Location: ' . $_SERVER['HTTP_REFERER']); 11 10 wp_redirect($_SERVER['HTTP_REFERER']); 12 11 ?> 12 No newline at end of file -
wp-login.php
184 184 wp_setcookie($user_login, $user_pass); 185 185 } 186 186 do_action('wp_login', $user_login); 187 header("Location: $redirect_to");187 wp_redirect($redirect_to); 188 188 exit(); 189 189 } else { 190 190 if ($using_cookie) -
wp-comments-post.php
52 52 53 53 $location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to']; 54 54 55 header("Location: $location"); 56 55 wp_redirect($location); 57 56 ?> 57 No newline at end of file -
wp-includes/functions.php
1711 1711 } 1712 1712 endif; 1713 1713 1714 // Cookie safe redirect. Works around IIS Set-Cookie bug. 1715 // http://support.microsoft.com/kb/q176113/ 1716 if ( !function_exists('wp_redirect') ) : 1717 function wp_redirect($location) { 1718 global $is_IIS; 1719 1720 if ($is_IIS) 1721 header("Refresh: 0;url=$location"); 1722 else 1723 header("Location: $location"); 1724 } 1725 endif; 1726 1714 1727 function is_plugin_page() { 1715 1728 global $plugin_page; 1716 1729 -
wp-includes/vars.php
35 35 36 36 // Server detection 37 37 $is_apache = strstr($_SERVER['SERVER_SOFTWARE'], 'Apache') ? 1 : 0; 38 $is_IIS = strstr($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') ? 1 : 0; 38 39 39 40 // if the config file does not provide the smilies array, let's define it here 40 41 if (!isset($wpsmiliestrans)) { -
wp-admin/options.php
84 84 $referred = remove_query_arg('updated' , $_SERVER['HTTP_REFERER']); 85 85 $goback = add_query_arg('updated', 'true', $_SERVER['HTTP_REFERER']); 86 86 $goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback); 87 header('Location: ' .$goback);87 wp_redirect($goback); 88 88 break; 89 89 90 90 default: -
wp-admin/profile.php
86 86 87 87 $result = $wpdb->query("UPDATE $wpdb->users SET user_firstname='$newuser_firstname', $updatepassword user_lastname='$newuser_lastname', user_nickname='$newuser_nickname', user_icq='$newuser_icq', user_email='$newuser_email', user_url='$newuser_url', user_aim='$newuser_aim', user_msn='$newuser_msn', user_yim='$newuser_yim', user_idmode='$newuser_idmode', user_description = '$user_description', user_nicename = '$newuser_nicename' WHERE ID = $user_ID"); 88 88 89 header('Location:profile.php?updated=true');89 wp_redirect('profile.php?updated=true'); 90 90 break; 91 91 92 92 case 'IErightclick': -
wp-admin/link-manager.php
243 243 WHERE link_id=$link_id"); 244 244 } // end if save 245 245 setcookie('links_show_cat_id_' . COOKIEHASH, $links_show_cat_id, time()+600); 246 header('Location: ' .$this_file);246 wp_redirect($this_file); 247 247 break; 248 248 } // end Save 249 249 … … 267 267 } 268 268 $links_show_cat_id = $cat_id; 269 269 setcookie('links_show_cat_id_' . COOKIEHASH, $links_show_cat_id, time()+600); 270 header('Location: '.$this_file);270 wp_redirect($this_file); 271 271 break; 272 272 } // end Delete 273 273
