mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Pink trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@16900 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -721,20 +721,20 @@ function revoke_super_admin( $user_id ) {
|
||||
}
|
||||
/**
|
||||
* Whether or not we can edit this network from this page
|
||||
*
|
||||
*
|
||||
* By default editing of network is restricted to the Network Admin for that site_id this allows for this to be overridden
|
||||
*
|
||||
*
|
||||
* @since 3.1.0
|
||||
* @param integer $site_id The network/site id to check.
|
||||
*/
|
||||
function can_edit_network( $site_id ) {
|
||||
global $wpdb;
|
||||
|
||||
|
||||
if ($site_id == $wpdb->siteid )
|
||||
$result = true;
|
||||
else
|
||||
$result = false;
|
||||
|
||||
|
||||
return apply_filters( 'can_edit_network', $result, $site_id );
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user