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

WordPress Trac noreply at wordpress.org
Sat Dec 14 06:30:39 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                   |  Resolution:
 Keywords:  reporter-feedback close  |
-------------------------------------+------------------------------
Changes (by jeremyfelt):

 * keywords:   => reporter-feedback close


Comment:

 Thanks for the report, @brianfeister. I attempted to reproduce the issue
 in current trunk with both subdomain and subfolder setups, but am unable
 to do so.

 Steps:

 1. I setup a standard multisite (subdirectory) and enabled registration
 for users and sites. I then registered for the user/site `test1` at
 `http://src.wordpress-develop.dev/wp-signup.php`
 2. Received email with activation key.
 3. Added activation key and login/site to this code block in Twenty
 Fourteen's header.php:
 {{{
 if ( isset( $_GET['fake_activate'] ) ) {
         $activate_signup = wpmu_activate_signup( '634c27dc12ebb4ec' );

         $creds = array();
         $creds['user_login'] = 'test1';
         $creds['user_password'] = $activate_signup['password'];
         $creds['remember'] = true;
         $user = wp_signon( $creds, false );
         wp_redirect( 'http://test1.src.wordpress-develop.dev/wp-
 admin/customize.php' );
         exit();
 }
 }}}
 4. Visit `http://test1.src.wordpress-develop.dev/?fake_activate`
 5. Browser redirects to `http://test1.src.wordpress-develop.dev/wp-
 admin/customize.php` without complaint and logged in as the test1 user.

 The only thing that I can think of immediately from your example is that
 `wpmu_activate_signup()` does not have an activation key specified. Also,
 if you are handling the creation of the site through a custom form
 (resulting in the generation of `$subdomain`, it is possible that a step
 is being missed that would normally be handled by core.

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


More information about the wp-trac mailing list