Jeremy Felt
19f988840f
Multisite: Wrap the main bootstrap process in a function
...
Introduce `ms_load_current_site_and_network`. This is used by core during the multisite bootstrap process to populate the `$current_site` and `$current_blog` globals based on a requested domain and path.
Return values from this function inform `ms-settings.php` as to whether a page view should continue, `ms_not_installed()` should fire, or a redirect to a new location should occur.
This was previously a procedural block in `ms-settings.php`. Wrapping this code and providing specific return values allows us to write tests that do not rely on the manual and repeated inclusion of `ms-settings.php`.
This should not be used by plugins or themes. Please.
See #34941 .
Built from https://develop.svn.wordpress.org/trunk@37475
git-svn-id: http://core.svn.wordpress.org/trunk@37443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-05-20 20:57:28 +00:00
..
2016-05-13 18:41:31 +00:00
2016-05-17 01:45:27 +00:00
2016-05-17 20:39:30 +00:00
2016-03-18 20:43:26 +00:00
2016-02-23 16:55:27 +00:00
2016-05-20 06:11:28 +00:00
2015-11-20 04:34:25 +00:00
2016-03-08 17:15:27 +00:00
2016-05-13 11:15:29 +00:00
2016-05-13 18:41:31 +00:00
2015-10-20 05:57:24 +00:00
2015-10-24 22:45:25 +00:00
2016-05-17 20:33:29 +00:00
2016-05-16 07:22:30 +00:00
2016-03-10 05:37:27 +00:00
2016-05-19 00:06:28 +00:00
2016-05-13 18:41:31 +00:00
2015-12-18 23:01:28 +00:00
2016-05-18 22:07:28 +00:00
2016-04-20 15:35:27 +00:00
2016-05-02 04:00:28 +00:00
2016-05-19 02:39:27 +00:00
2016-05-13 18:41:31 +00:00
2016-02-26 09:27:26 +00:00
2016-05-16 06:12:29 +00:00
2016-04-19 06:13:29 +00:00
2015-12-06 21:23:25 +00:00
2016-05-13 18:41:31 +00:00
2015-12-24 01:59:26 +00:00
2016-05-13 04:42:28 +00:00
2015-12-24 01:59:26 +00:00
2016-03-30 13:58:28 +00:00
2016-03-22 17:22:29 +00:00
2016-03-22 17:30:26 +00:00
2016-04-29 15:47:27 +00:00
2016-03-22 17:53:27 +00:00
2016-03-22 18:07:27 +00:00
2016-03-03 15:58:27 +00:00
2016-03-18 11:59:27 +00:00
2016-05-13 18:41:31 +00:00
2016-01-17 15:00:27 +00:00
2016-05-02 04:00:28 +00:00
2016-05-02 04:00:28 +00:00
2016-03-21 21:59:29 +00:00
2016-05-02 04:00:28 +00:00
2016-05-02 04:00:28 +00:00
2016-05-02 22:42:26 +00:00
2016-05-02 23:42:28 +00:00
2016-05-16 18:57:29 +00:00
2016-03-12 12:39:27 +00:00
2016-03-12 12:39:27 +00:00
2016-01-28 03:35:27 +00:00
2016-05-13 18:41:31 +00:00
2015-10-08 19:27:28 +00:00
2016-05-13 18:41:31 +00:00
2015-10-31 20:50:25 +00:00
2016-05-13 18:41:31 +00:00
2016-05-13 18:41:31 +00:00
2016-05-02 04:00:28 +00:00
2016-03-09 16:59:27 +00:00
2016-01-18 02:59:27 +00:00
2015-11-17 11:27:29 +00:00
2015-10-14 23:44:25 +00:00
2016-05-13 18:41:31 +00:00
2015-12-14 20:05:27 +00:00
2016-05-13 18:41:31 +00:00
2016-05-20 04:41:27 +00:00
2016-05-02 04:00:28 +00:00
2016-01-10 01:26:25 +00:00
2016-05-13 18:41:31 +00:00
2016-05-13 18:41:31 +00:00
2016-05-13 18:41:31 +00:00
2016-05-13 18:41:31 +00:00
2016-04-30 22:36:28 +00:00
2016-05-12 20:23:28 +00:00
2016-05-13 18:41:31 +00:00
2016-05-05 20:03:27 +00:00
2016-03-14 22:39:26 +00:00
2016-04-10 03:33:26 +00:00
2016-03-06 19:50:27 +00:00
2016-05-13 18:41:31 +00:00
2016-05-12 15:37:27 +00:00
2016-02-07 01:18:27 +00:00
2016-01-14 17:30:28 +00:00
2016-05-02 04:00:28 +00:00
2015-12-22 13:02:29 +00:00
2016-05-13 05:11:27 +00:00
2016-05-13 18:41:31 +00:00
2016-02-27 21:22:25 +00:00
2016-05-17 01:45:27 +00:00
2015-10-20 16:21:25 +00:00
2015-11-04 17:47:25 +00:00
2015-10-20 16:21:25 +00:00
2015-10-20 16:21:25 +00:00
2015-11-04 17:47:25 +00:00
2015-10-20 16:21:25 +00:00
2016-04-21 18:57:28 +00:00
2016-05-20 06:15:27 +00:00
2016-05-17 03:55:29 +00:00
2016-04-13 04:30:29 +00:00
2016-04-13 04:30:29 +00:00
2016-05-13 18:41:31 +00:00
2016-05-13 04:42:28 +00:00
2016-05-02 04:00:28 +00:00
2016-05-16 15:10:29 +00:00
2016-05-02 04:00:28 +00:00
2016-05-17 20:22:28 +00:00
2016-05-13 18:41:31 +00:00
2016-04-17 12:01:27 +00:00
2016-03-18 19:45:26 +00:00
2016-03-10 17:50:27 +00:00
2016-05-20 04:41:27 +00:00
2016-02-29 03:17:26 +00:00
2016-02-26 09:16:26 +00:00
2015-06-16 20:01:25 +00:00
2016-03-09 07:50:26 +00:00
2016-05-20 20:57:28 +00:00
2016-05-20 20:57:28 +00:00
2016-05-02 04:00:28 +00:00
2016-05-02 04:00:28 +00:00
2016-05-05 20:24:29 +00:00
2016-02-23 22:26:28 +00:00
2016-04-27 02:52:28 +00:00
2016-05-02 04:00:28 +00:00
2016-04-19 21:24:27 +00:00
2015-10-12 17:00:26 +00:00
2016-05-08 12:46:29 +00:00
2016-05-13 18:41:31 +00:00
2016-03-10 18:49:26 +00:00
2016-02-24 00:44:59 +00:00
2016-05-13 18:41:31 +00:00
2016-05-07 15:59:29 +00:00
2016-05-20 06:11:28 +00:00
2016-01-09 01:45:26 +00:00
2015-12-26 04:46:28 +00:00
2016-05-13 18:41:31 +00:00
2016-03-07 19:33:26 +00:00
2016-03-10 22:45:26 +00:00
2016-05-13 18:41:31 +00:00
2016-03-16 16:15:28 +00:00
2016-05-02 04:00:28 +00:00
2016-03-03 03:25:26 +00:00
2016-05-20 20:57:28 +00:00
2016-05-02 04:00:28 +00:00
2013-12-11 19:49:11 +00:00
2016-05-13 18:41:31 +00:00
2016-05-13 18:41:31 +00:00