[wp-trac] [WordPress Trac] #25793: In a multisite, get_site_option() doesn't work in login_redirect filter

WordPress Trac noreply at wordpress.org
Sat Dec 14 07:05:49 UTC 2013


#25793: In a multisite, get_site_option() doesn't work in login_redirect filter
-------------------------------------+------------------------------
 Reporter:  sgissinger               |       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:

 I'm not able to reproduce an issue in current trunk.

 1. Insert a row to `wp_sitemeta` for `testdomain` as `http://src
 .wordpress-develop/fake/login/redirect`
 2. Add this code to `mu-plugins/index.php`
 {{{
 define( 'OPT_SITE_URL', 'testdomain' );
 function dessange_login_redirect($redirect_to, $request, $user) {
         return get_site_option( OPT_SITE_URL );
 }
 add_filter( 'login_redirect', 'dessange_login_redirect', 1, 3 );
 }}}
 3. Login with form at `http://src.wordpress-develop.dev/wp-login.php`
 4. Login redirects to `http://src.wordpress-develop/fake/login/redirect`
 as expected.

 Can you provide more detail on what fails?

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


More information about the wp-trac mailing list