mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 23:24:34 +00:00
Docs: Add missing descriptions for the $wpdb global in DocBlocks all the places.
See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@35170 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -274,7 +274,7 @@ function wp_validate_logged_in_cookie( $user_id ) {
|
||||
* @since 4.3.0 Added `$public_only` argument. Added the ability to pass an array
|
||||
* of post types to `$post_type`.
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database object for queries.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $userid User ID.
|
||||
* @param array|string $post_type Optional. Single post type or array of post types to count the number of posts for. Default 'post'.
|
||||
@@ -308,7 +308,7 @@ function count_user_posts( $userid, $post_type = 'post', $public_only = false )
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $users Array of user IDs.
|
||||
* @param string|array $post_type Optional. Single post type or array of post types to check. Defaults to 'post'.
|
||||
@@ -368,7 +368,7 @@ function get_current_user_id() {
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database object for queries.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $option User option name.
|
||||
* @param int $user Optional. User ID.
|
||||
@@ -420,7 +420,7 @@ function get_user_option( $option, $user = 0, $deprecated = '' ) {
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database object for queries.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $user_id User ID.
|
||||
* @param string $option_name User option name.
|
||||
@@ -448,7 +448,7 @@ function update_user_option( $user_id, $option_name, $newvalue, $global = false
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database object for queries.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $user_id User ID
|
||||
* @param string $option_name User option name.
|
||||
@@ -490,7 +490,7 @@ function get_users( $args = array() ) {
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database object for queries.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $user_id User ID
|
||||
* @param bool $all Whether to retrieve all blogs, or only blogs that are not
|
||||
@@ -737,7 +737,7 @@ function update_user_meta($user_id, $meta_key, $meta_value, $prev_value = '') {
|
||||
* @since 3.0.0
|
||||
* @since 4.4.0 The number of users with no role is now included in the `none` element.
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $strategy 'time' or 'memory'
|
||||
* @return array Includes a grand total and an array of counts indexed by role strings.
|
||||
@@ -1230,7 +1230,7 @@ function validate_username( $username ) {
|
||||
* @since 3.6.0 The `aim`, `jabber`, and `yim` fields were removed as default user contact
|
||||
* methods for new installs. See wp_get_user_contact_methods().
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database object for queries.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array|object|WP_User $userdata {
|
||||
* An array, object, or WP_User object of user data arguments.
|
||||
|
||||
Reference in New Issue
Block a user