﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
11870	categories.php does not redirect to front-end.	mfields	dancole	"Hi, This is my first post here, so please go easy on me if I have done something incorrectly...

When I add a link to edit a category from my theme, Wordpress appears to be coded to allow me to redirect back to the page where the link was originally clicked. I believe that the logic in /wp-admin/categories.php is backwards thus always forcing redirect to categories.php.

The following code can be found starting on line 99 of /wp-admin/categories.php:

{{{
$location = 'categories.php';
if ( $referer = wp_get_original_referer() ) {
	if ( false !== strpos($referer, 'categories.php') )
		$location = $referer;
}
}}}

by changing this conditional statement:

{{{
if ( false !== strpos($referer, 'categories.php') )
}}}

to:

{{{
if ( false === strpos($referer, 'categories.php') )
}}}

The bug was fixed for me on 2.9.1"	defect (bug)	closed	normal		Administration	2.9.1	normal	wontfix	close	
