[wp-trac] [WordPress Trac] #25901: /wp-admin/customize.php can't be navigated to with wp_redirect()

WordPress Trac noreply at wordpress.org
Sun Nov 10 10:05:24 UTC 2013


#25901: /wp-admin/customize.php can't be navigated to with wp_redirect()
--------------------------+-----------------------------
 Reporter:  brianfeister  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:  3.6.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 With WordPress Multisite, programmatically creating a new user, with
 `$activate_signup()`, then logging that user in via `wp_signon()`works,
 but when trying to automatically move the user the theme customizer page
 (the focus of my Multisite network), I get a "Session expired. Please log
 in again. You will  note move away from this page." Clicking "close" on
 the customizer frame takes the user back to the dashboard without asking
 for authentication.  Is this happening because the Theme Customizer is in
 some way different than other wp-admin areas and cannot be the "first-
 navigated" admin page when a user initially authenticates?

 This may be a bug or a feature request, I would need some clarification.

 {{{
 activate_signup = wpmu_activate_signup();

 $creds = array();
 $creds['user_login'] = $passed['username'];
 $creds['user_password'] = $activate_signup['password'];
 $creds['remember'] = true;
 $user = wp_signon( $creds, false );

 wp_redirect( 'http://' . $subdomain . '/wp-admin/customize.php' ); //
 $subdomain is captured via a signup form and is outside this snippet
 exit();
 }}}

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


More information about the wp-trac mailing list