mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Docs: Fix and upgrade various object docblock notations.
See #50768 git-svn-id: https://develop.svn.wordpress.org/trunk@49183 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+10
-10
@@ -762,8 +762,8 @@ function get_users( $args = array() ) {
|
||||
* @param int $user_id User ID
|
||||
* @param bool $all Whether to retrieve all sites, or only sites that are not
|
||||
* marked as deleted, archived, or spam.
|
||||
* @return array A list of the user's sites. An empty array if the user doesn't exist
|
||||
* or belongs to no sites.
|
||||
* @return object[] A list of the user's sites. An empty array if the user doesn't exist
|
||||
* or belongs to no sites.
|
||||
*/
|
||||
function get_blogs_of_user( $user_id, $all = false ) {
|
||||
global $wpdb;
|
||||
@@ -783,10 +783,10 @@ function get_blogs_of_user( $user_id, $all = false ) {
|
||||
*
|
||||
* @since 4.6.0
|
||||
*
|
||||
* @param null|array $sites An array of site objects of which the user is a member.
|
||||
* @param int $user_id User ID.
|
||||
* @param bool $all Whether the returned array should contain all sites, including
|
||||
* those marked 'deleted', 'archived', or 'spam'. Default false.
|
||||
* @param null|object[] $sites An array of site objects of which the user is a member.
|
||||
* @param int $user_id User ID.
|
||||
* @param bool $all Whether the returned array should contain all sites, including
|
||||
* those marked 'deleted', 'archived', or 'spam'. Default false.
|
||||
*/
|
||||
$sites = apply_filters( 'pre_get_blogs_of_user', null, $user_id, $all );
|
||||
|
||||
@@ -875,10 +875,10 @@ function get_blogs_of_user( $user_id, $all = false ) {
|
||||
*
|
||||
* @since MU (3.0.0)
|
||||
*
|
||||
* @param array $sites An array of site objects belonging to the user.
|
||||
* @param int $user_id User ID.
|
||||
* @param bool $all Whether the returned sites array should contain all sites, including
|
||||
* those marked 'deleted', 'archived', or 'spam'. Default false.
|
||||
* @param object[] $sites An array of site objects belonging to the user.
|
||||
* @param int $user_id User ID.
|
||||
* @param bool $all Whether the returned sites array should contain all sites, including
|
||||
* those marked 'deleted', 'archived', or 'spam'. Default false.
|
||||
*/
|
||||
return apply_filters( 'get_blogs_of_user', $sites, $user_id, $all );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user