Ticket #2108 (closed defect (bug): fixed)

Opened 6 years ago

Last modified 5 years ago

redirect does not always work

Reported by: Denis-de-Bernardy Owned by: anonymous
Priority: normal Milestone: 2.1
Component: Administration Version: 2.0
Severity: major Keywords:
Cc:

Description

e.g. using:

/wp-admin/profile.php

does not always redirect on a Windows machine when the profile is updated (leaves a blank screen).

Change History

function wp_goto($location) {

if (strstr($_SERVERSERVER_SOFTWARE?, 'Microsoft-IIS')) {

header("Refresh: 0; URL=" . $location);

} else {

header("Location: " . $location);

}

}

function wp_goto($location) {
	if (strstr($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS')) {
		header("Refresh: 0; URL=" . $location);
	}
	else {
		header("Location: " . $location);
	}
}

  • Milestone set to 2.0
  • Milestone changed from 2.0 to 2.0.1

comment:6   matt6 years ago

  • Milestone changed from 2.0.1 to 2.1

comment:7   matt5 years ago

  • Status changed from new to closed
  • Resolution set to fixed

This should be obsolete by wp_redirect.

Note: See TracTickets for help on using tickets.