[wp-trac] [WordPress Trac] #20872: Accessing /wp-admin/customize.php doesn't redirect to wp-login.php when not logged in

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 7 13:26:10 UTC 2012


#20872: Accessing /wp-admin/customize.php doesn't redirect to wp-login.php when not
logged in
--------------------------------------+------------------
 Reporter:  ocean90                   |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  3.4
Component:  Appearance                |     Version:  3.4
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |
--------------------------------------+------------------

Comment (by nacin):

 We can fire it ourselves.
 {{{
 if ( is_admin() && ! defined( 'DOING_AJAX' ) )
     auth_redirect();
 }}}
 Does that look right?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20872#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list