WordPress/wp-includes
Andrew Nacin b94cfff6ad Create new $wp_roles object in install_blog() to avoid protected _init() call
Merges [30242] to the 4.0 branch.

Our call to `$wp_roles->_init()` relied on the `__call()` method in `WP_Roles` to handle the link to the protected method. This works back to PHP 5.2.9, when a bug was fixed allowing access to protected methods through this exact approach.

`install_blog()` needs a fresh `$wp_roles` object after `populate_roles()` resets everything in its path. We can create this new object from scratch, effectively doing the same thing with the call to `_init()` via the constructor.

props jeremyfelt.
fixes #29692.

Built from https://develop.svn.wordpress.org/branches/4.0@30255


git-svn-id: http://core.svn.wordpress.org/branches/4.0@30255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-06 08:09:05 +00:00
..
2014-08-05 19:14:18 +00:00
2014-03-27 22:41:14 +00:00
2014-11-06 07:11:31 +00:00
2014-08-09 19:30:17 +00:00
2014-09-04 15:23:16 +00:00
2014-08-09 19:30:17 +00:00
2014-06-10 00:30:15 +00:00
2014-09-04 15:23:16 +00:00
2014-08-26 19:59:16 +00:00
2014-03-26 18:43:14 +00:00
2013-10-30 14:39:10 +00:00
2014-07-09 18:07:16 +00:00
2014-11-06 06:49:37 +00:00