[wp-trac] [WordPress Trac] #11870: categories.php does not redirect to front-end.

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 11 23:09:21 UTC 2010


#11870: categories.php does not redirect to front-end.
----------------------------+-----------------------------------------------
 Reporter:  mfields         |       Owner:                   
     Type:  defect (bug)    |      Status:  new              
 Priority:  normal          |   Milestone:  Unassigned       
Component:  Administration  |     Version:  2.9.1            
 Severity:  normal          |    Keywords:  category redirect
----------------------------+-----------------------------------------------
 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

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11870>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list