mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Docs: Corrections and improvements to types used in various docblocks.
See #51800, #52217 git-svn-id: https://develop.svn.wordpress.org/trunk@49936 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -872,8 +872,8 @@ function get_super_admins() {
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param int $user_id (Optional) The ID of a user. Defaults to the current user.
|
||||
* @return bool True if the user is a site admin.
|
||||
* @param int|false $user_id Optional. The ID of a user. Defaults to false, to check the current user.
|
||||
* @return bool Whether the user is a site admin.
|
||||
*/
|
||||
function is_super_admin( $user_id = false ) {
|
||||
if ( ! $user_id || get_current_user_id() == $user_id ) {
|
||||
|
||||
Reference in New Issue
Block a user