Multisite: Relocate revoke_super_admin() and grant_super_admin()

Moving these functions to `wp-includes/capabilities.php` allows plugins to access more than just `is_super_admin()` and `get_super_admin()` from the front end without including a file via `wp-admin/`. Add an `is_multisite()` check to prevent use of these on single site environments now that they have left `ms.php`..

Props johnjamesjacoby.
Fixes #21788.

Built from https://develop.svn.wordpress.org/trunk@37200


git-svn-id: http://core.svn.wordpress.org/trunk@37166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt
2016-04-14 03:35:27 +00:00
parent efee62a316
commit 6cc19b5e2e
3 changed files with 97 additions and 97 deletions

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37199';
$wp_version = '4.6-alpha-37200';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.