Support » Fixing WordPress » Possible bug: Bad network_home_url on multisite & "giving WP its own directory"

  • With multisite enabled and “Giving WordPress its own directory” (http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory), the “Lost your password?” link on wp-login.php is broken.

    This is because wp_lostpassword_url() calls network_site_url(), which returns http://www.example.com, despite the fact that calling site_url() from the main site returns http://www.example.com/wordpress (as expected – /wordpress is “its own directory”). I would expect network_site_url() to return the same url as calling site_url() from the main site, as per the documentation: http://codex.wordpress.org/Function_Reference/network_site_url

    I should mention that everything except for the links on wp-login.php seems to be working properly; no broken links on the frontend, all the blogs’ admins work properly as does network admin, etc. Logins work properly too (with FORCE_SSL_LOGIN and FORCE_SSL_ADMIN enabled). Just those links on wp-login.php are bad, due to network_site_url() not returning the proper url for the main site.

    Is this a bug in the wordpress core?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Possible bug: Bad network_home_url on multisite & "giving WP its own directory"’ is closed to new replies.