[wp-trac] [WordPress Trac] #20872: Customizer: Accessing /wp-admin/customize.php doesn't redirect to wp-login.php when not logged in (was: 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:53:40 UTC 2012
#20872: Customizer: 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 ocean90):
Replying to [comment:1 nacin]:
> We can fire it ourselves.
> {{{
> if ( is_admin() && ! defined( 'DOING_AJAX' ) )
> auth_redirect();
> }}}
Works for me.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20872#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list