Possible bug: Bad network_home_url on multisite & "giving WP its own directory"
-
With multisite enabled and “Giving WordPress its own directory” (https://codex.www.ads-software.com/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 https://www.example.com, despite the fact that calling site_url() from the main site returns https://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: https://codex.www.ads-software.com/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?
- The topic ‘Possible bug: Bad network_home_url on multisite & "giving WP its own directory"’ is closed to new replies.