mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
Add @global annotations for wp-admin/*.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -48,6 +48,8 @@ add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
*
|
||||
* @param int $blog_id Blog ID.
|
||||
* @param bool $drop True if blog's table should be dropped. Default is false.
|
||||
*/
|
||||
@@ -176,6 +178,8 @@ function wpmu_delete_blog( $blog_id, $drop = false ) {
|
||||
*
|
||||
* @todo Merge with wp_delete_user() ?
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
*
|
||||
* @param int $id The user ID.
|
||||
* @return bool True if the user was deleted, otherwise false.
|
||||
*/
|
||||
@@ -495,6 +499,8 @@ add_action( 'wpmueditblogaction', 'upload_space_setting' );
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
*
|
||||
* @param int $id The user ID.
|
||||
* @param string $pref The column in the wp_users table to update the user's status
|
||||
* in (presumably user_status, spam, or deleted).
|
||||
@@ -842,6 +848,8 @@ function choose_primary_blog() {
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global array $super_admins
|
||||
*
|
||||
* @param int $user_id ID of the user to be granted Super Admin privileges.
|
||||
* @return bool True on success, false on failure. This can fail when the user is
|
||||
* already a super admin or when the `$super_admins` global is defined.
|
||||
@@ -887,6 +895,8 @@ function grant_super_admin( $user_id ) {
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global array $super_admins
|
||||
*
|
||||
* @param int $user_id ID of the user Super Admin privileges to be revoked from.
|
||||
* @return bool True on success, false on failure. This can fail when the user's email
|
||||
* is the network admin email or when the `$super_admins` global is defined.
|
||||
@@ -937,6 +947,8 @@ function revoke_super_admin( $user_id ) {
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
*
|
||||
* @param int $site_id The network/site ID to check.
|
||||
* @return bool True if network can be edited, otherwise false.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user