[wp-trac] [WordPress Trac] #20872: Customizer: 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 15:53:06 UTC 2012
#20872: Customizer: Accessing /wp-admin/customize.php doesn't redirect to wp-
login.php when not logged in
------------------------------+-----------------------
Reporter: ocean90 | Owner: nacin
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.4
Component: Appearance | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+-----------------------
Changes (by nacin):
* status: closed => reopened
* resolution: fixed =>
Comment:
We should probably do:
{{{
if ( is_admin() && ! defined( 'DOING_AJAX' ) ) {
} elseif ( defined( 'DOING_AJAX' ) && ! is_user_logged_in() ) {
wp_die( -1 );
} elseif ( ! is_user_logged_in() ) {
// redirect to login for the preview
}
}}}
For the ajax check, see #20876.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20872#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list