mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +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:
@@ -319,7 +319,7 @@ function get_author_posts_url($author_id, $author_nicename = '') {
|
||||
*
|
||||
* @since 1.2.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string|array $args {
|
||||
* Optional. Array or string of default arguments.
|
||||
@@ -453,7 +453,7 @@ function wp_list_authors( $args = '' ) {
|
||||
*
|
||||
* @since 3.2.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @return bool Whether or not we have more than one author
|
||||
*/
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
* @global WP_Rewrite $wp_rewrite
|
||||
* @global bool $is_IIS
|
||||
* @global WP_Query $wp_query
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $requested_url Optional. The URL that was requested, used to
|
||||
* figure if redirect is needed.
|
||||
|
||||
@@ -454,7 +454,7 @@ class WP_Comment_Query {
|
||||
* @since 4.4.0
|
||||
* @access protected
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
protected function get_comment_ids() {
|
||||
global $wpdb;
|
||||
@@ -941,7 +941,7 @@ class WP_Comment_Query {
|
||||
* @since 3.1.0
|
||||
* @access protected
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $string
|
||||
* @param array $cols
|
||||
|
||||
@@ -484,7 +484,7 @@ class WP_Meta_Query {
|
||||
* @since 4.1.0
|
||||
* @access public
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $clause Query clause, passed by reference.
|
||||
* @param array $parent_query Parent query array.
|
||||
|
||||
@@ -202,7 +202,7 @@ final class WP_Post {
|
||||
* @static
|
||||
* @access public
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $post_id Post ID.
|
||||
* @return WP_Post|false Post object, false otherwise.
|
||||
|
||||
@@ -138,7 +138,7 @@ class WP_Roles {
|
||||
* @since 3.5.0
|
||||
* @access public
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
public function reinit() {
|
||||
// There is no need to reinit if using the wp_user_roles global.
|
||||
|
||||
@@ -134,7 +134,7 @@ class WP_User_Query {
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @global int $blog_id
|
||||
*
|
||||
* @param string|array $query {
|
||||
@@ -514,7 +514,7 @@ class WP_User_Query {
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database object for queries.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
public function query() {
|
||||
global $wpdb;
|
||||
@@ -594,7 +594,7 @@ class WP_User_Query {
|
||||
* @access protected
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $string
|
||||
* @param array $cols
|
||||
|
||||
@@ -102,14 +102,14 @@ class WP_User {
|
||||
private static $back_compat_keys;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Constructor.
|
||||
*
|
||||
* Retrieves the userdata and passes it to {@link WP_User::init()}.
|
||||
* Retrieves the userdata and passes it to WP_User::init().
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @access public
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int|string|stdClass|WP_User $id User's ID, a WP_User object, or a user object from the DB.
|
||||
* @param string $name Optional. User's username
|
||||
@@ -175,7 +175,7 @@ class WP_User {
|
||||
*
|
||||
* @static
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'.
|
||||
* @param string|int $value The field value
|
||||
@@ -418,7 +418,7 @@ class WP_User {
|
||||
* @access protected
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $cap_key Optional capability key
|
||||
*/
|
||||
@@ -608,7 +608,7 @@ class WP_User {
|
||||
* @since 2.0.0
|
||||
* @access public
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
public function update_user_level_from_caps() {
|
||||
global $wpdb;
|
||||
@@ -656,7 +656,7 @@ class WP_User {
|
||||
* @since 2.1.0
|
||||
* @access public
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
public function remove_all_caps() {
|
||||
global $wpdb;
|
||||
@@ -745,7 +745,7 @@ class WP_User {
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $blog_id Optional Blog ID, defaults to current blog.
|
||||
*/
|
||||
|
||||
@@ -2832,7 +2832,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
*
|
||||
* @since 2.2.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $args {
|
||||
* Method arguments. Note: arguments must be ordered as documented.
|
||||
@@ -5066,7 +5066,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $post_ID Post ID.
|
||||
* @param string $post_content Post Content for attachment.
|
||||
@@ -5693,7 +5693,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $args {
|
||||
* Method arguments. Note: arguments must be ordered as documented.
|
||||
@@ -6032,7 +6032,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $post_ID
|
||||
* @return array|IXR_Error
|
||||
@@ -6122,7 +6122,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @global string $wp_version
|
||||
*
|
||||
* @param array $args {
|
||||
@@ -6333,7 +6333,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $url
|
||||
* @return array|IXR_Error
|
||||
|
||||
@@ -832,7 +832,8 @@ function get_comment_pages_count( $comments = null, $per_page = null, $threaded
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $comment_ID Comment ID.
|
||||
* @param array $args {
|
||||
* Array of optional arguments.
|
||||
@@ -1632,8 +1633,7 @@ function wp_throttle_comment_flood($block, $time_lastcomment, $time_newcomment)
|
||||
* @since 4.3.0 'comment_agent' and 'comment_author_IP' can be set via `$commentdata`.
|
||||
*
|
||||
* @see wp_insert_comment()
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $commentdata {
|
||||
* Comment data.
|
||||
|
||||
@@ -3322,7 +3322,7 @@ function _deep_replace( $search, $subject ) {
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string|array $data Unescaped data
|
||||
* @return string|array Escaped data
|
||||
@@ -3617,7 +3617,7 @@ function wp_make_link_relative( $link ) {
|
||||
*
|
||||
* @since 2.0.5
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $option The name of the option.
|
||||
* @param string $value The unsanitised value.
|
||||
|
||||
@@ -500,7 +500,7 @@ function wp_extract_urls( $content ) {
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $content Post Content.
|
||||
* @param int $post_ID Post ID.
|
||||
@@ -4317,7 +4317,7 @@ function _cleanup_header_comment( $str ) {
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
function wp_scheduled_delete() {
|
||||
global $wpdb;
|
||||
|
||||
@@ -593,7 +593,7 @@ function allowed_http_request_hosts( $is_external, $host ) {
|
||||
*
|
||||
* @since 3.6.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @staticvar array $queried
|
||||
*
|
||||
* @param bool $is_external
|
||||
|
||||
@@ -1550,7 +1550,7 @@ function get_next_post( $in_same_term = false, $excluded_terms = '', $taxonomy =
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param bool $in_same_term Optional. Whether post should be in a same taxonomy term.
|
||||
* @param array|string $excluded_terms Optional. Array or comma-separated list of excluded term IDs.
|
||||
|
||||
@@ -556,7 +556,7 @@ function metadata_exists( $meta_type, $object_id, $meta_key ) {
|
||||
*
|
||||
* @since 3.3.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
|
||||
* @param int $meta_id ID for a specific meta row
|
||||
@@ -597,7 +597,7 @@ function get_metadata_by_mid( $meta_type, $meta_id ) {
|
||||
*
|
||||
* @since 3.3.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
|
||||
* @param int $meta_id ID for a specific meta row
|
||||
@@ -690,7 +690,7 @@ function update_metadata_by_mid( $meta_type, $meta_id, $meta_value, $meta_key =
|
||||
*
|
||||
* @since 3.3.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $meta_type Type of object metadata is for (e.g., comment, post, or user)
|
||||
* @param int $meta_id ID for a specific meta row
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
function wpmu_update_blogs_date() {
|
||||
global $wpdb;
|
||||
@@ -68,7 +68,7 @@ function get_blogaddress_by_name( $blogname ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $slug
|
||||
* @return int A blog id
|
||||
@@ -101,7 +101,7 @@ function get_id_from_blogname( $slug ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int|string|array $fields Optional. A blog ID, a blog slug, or an array of fields to query against.
|
||||
* If not specified the current blog ID is used.
|
||||
@@ -280,7 +280,7 @@ function refresh_blog_details( $blog_id = 0 ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $blog_id Blog ID
|
||||
* @param array $details Array of details keyed by blogs table field names.
|
||||
@@ -781,7 +781,7 @@ function update_archived( $id, $archived ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $blog_id BLog ID
|
||||
* @param string $pref A field name
|
||||
@@ -857,7 +857,7 @@ function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $id The blog id
|
||||
* @param string $pref A field name
|
||||
@@ -878,7 +878,7 @@ function get_blog_status( $id, $pref ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param mixed $deprecated Not used
|
||||
* @param int $start The offset
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
function ms_upload_constants() {
|
||||
global $wpdb;
|
||||
|
||||
@@ -399,7 +399,7 @@ function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) {
|
||||
* @since MU 1.0
|
||||
* @deprecated 4.4.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $sitedomain Optional. Site domain.
|
||||
* @param string $path Optional. Site path.
|
||||
|
||||
@@ -34,7 +34,7 @@ function get_sitestats() {
|
||||
*
|
||||
* @since MU 1.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $user_id The unique ID of the user
|
||||
* @return object|void The blog object
|
||||
@@ -195,7 +195,7 @@ function add_user_to_blog( $blog_id, $user_id, $role ) {
|
||||
*
|
||||
* @since MU 1.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $user_id ID of the user you're removing.
|
||||
* @param int $blog_id ID of the blog you're removing the user from.
|
||||
@@ -298,7 +298,7 @@ function get_blog_permalink( $blog_id, $post_id ) {
|
||||
*
|
||||
* @since MU 2.6.5
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $domain
|
||||
* @param string $path Optional. Not required for subdomain installations.
|
||||
@@ -398,7 +398,7 @@ function is_email_address_unsafe( $user_email ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $user_name The login name provided by the user.
|
||||
* @param string $user_email The email provided by the user.
|
||||
@@ -646,7 +646,7 @@ function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $domain The requested domain.
|
||||
* @param string $path The requested path.
|
||||
@@ -696,7 +696,7 @@ function wpmu_signup_blog( $domain, $path, $title, $user, $user_email, $meta = a
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $user The user's requested login name.
|
||||
* @param string $user_email The user's email address.
|
||||
@@ -936,7 +936,7 @@ function wpmu_signup_user_notification( $user, $user_email, $key, $meta = array(
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $key The activation key provided to the user.
|
||||
* @return array|WP_Error An array containing information about the activated user and/or blog
|
||||
@@ -1238,7 +1238,7 @@ Disable these notifications: %3$s'), $user->user_login, wp_unslash( $_SERVER['RE
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $domain The domain to be checked.
|
||||
* @param string $path The path to be checked.
|
||||
@@ -1271,7 +1271,7 @@ function domain_exists($domain, $path, $site_id = 1) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $domain The domain of the new site.
|
||||
* @param string $path The path of the new site.
|
||||
@@ -1373,7 +1373,7 @@ function install_blog( $blog_id, $blog_title = '' ) {
|
||||
* @deprecated MU
|
||||
* @deprecated Use wp_install_defaults()
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $blog_id Ignored in this function.
|
||||
* @param int $user_id
|
||||
@@ -1598,7 +1598,7 @@ function get_current_site() {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $user_id
|
||||
* @return array Contains the blog_id, post_id, post_date_gmt, and post_gmt_ts
|
||||
@@ -1745,7 +1745,7 @@ function check_upload_mimes( $mimes ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
function update_posts_count( $deprecated = '' ) {
|
||||
global $wpdb;
|
||||
@@ -1757,7 +1757,7 @@ function update_posts_count( $deprecated = '' ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $blog_id
|
||||
* @param int $user_id
|
||||
@@ -1776,7 +1776,7 @@ function wpmu_log_new_registrations( $blog_id, $user_id ) {
|
||||
*
|
||||
* @see term_id_filter
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @staticvar int $global_terms_recurse
|
||||
*
|
||||
* @param int $term_id An ID for a term on the current blog.
|
||||
@@ -2055,7 +2055,7 @@ function update_blog_public( $old_value, $value ) {
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $key
|
||||
* @param int $user_id Optional. Defaults to current user.
|
||||
@@ -2231,7 +2231,7 @@ function wp_maybe_update_network_user_counts() {
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
function wp_update_network_site_counts() {
|
||||
global $wpdb;
|
||||
@@ -2245,7 +2245,7 @@ function wp_update_network_site_counts() {
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
function wp_update_network_user_counts() {
|
||||
global $wpdb;
|
||||
@@ -2390,7 +2390,7 @@ function wp_is_large_network( $using = 'sites' ) {
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $args {
|
||||
* Array of default arguments. Optional.
|
||||
|
||||
@@ -148,7 +148,7 @@ function wp_get_network( $network ) {
|
||||
*
|
||||
* @since 3.9.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $domain Domain to check.
|
||||
* @param string $path Path to check.
|
||||
@@ -262,7 +262,7 @@ function get_site_by_path( $domain, $path, $segments = null ) {
|
||||
* @since 3.0.0
|
||||
* @since 4.4.0 The `$domain` and `$path` parameters were added.
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $domain The requested domain for the error to reference.
|
||||
* @param string $path The requested path for the error to reference.
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $option Name of option to retrieve. Expected to not be SQL-escaped.
|
||||
* @param mixed $default Optional. Default value to return if the option does not exist.
|
||||
@@ -164,7 +164,7 @@ function form_option( $option ) {
|
||||
*
|
||||
* @since 2.2.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @return array List of all options.
|
||||
*/
|
||||
@@ -197,7 +197,7 @@ function wp_load_alloptions() {
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $site_id Optional site ID for which to query the options. Defaults to the current site.
|
||||
*/
|
||||
@@ -237,7 +237,7 @@ function wp_load_core_site_options( $site_id = null ) {
|
||||
* @since 1.0.0
|
||||
* @since 4.2.0 The `$autoload` parameter was added.
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $option Option name. Expected to not be SQL-escaped.
|
||||
* @param mixed $value Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
|
||||
@@ -383,7 +383,7 @@ function update_option( $option, $value, $autoload = null ) {
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $option Name of option to add. Expected to not be SQL-escaped.
|
||||
* @param mixed $value Optional. Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
|
||||
@@ -480,7 +480,7 @@ function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' )
|
||||
*
|
||||
* @since 1.2.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $option Name of option to remove. Expected to not be SQL-escaped.
|
||||
* @return bool True, if option is successfully deleted. False on failure.
|
||||
|
||||
@@ -176,7 +176,7 @@ if ( !function_exists('cache_users') ) :
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $user_ids User ID numbers list
|
||||
*/
|
||||
|
||||
@@ -2091,7 +2091,7 @@ function _count_posts_cache_key( $type = 'post', $perm = '' ) {
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $type Optional. Post type to retrieve count. Default 'post'.
|
||||
* @param string $perm Optional. 'readable' or empty. Default empty.
|
||||
@@ -2156,7 +2156,7 @@ function wp_count_posts( $type = 'post', $perm = '' ) {
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string|array $mime_type Optional. Array or comma-separated list of
|
||||
* MIME patterns. Default empty.
|
||||
@@ -2643,7 +2643,7 @@ function wp_trash_post_comments( $post = null ) {
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to global $post.
|
||||
* @return true|void
|
||||
@@ -5200,8 +5200,7 @@ function get_private_posts_cap_sql( $post_type ) {
|
||||
* @since 4.3.0 Introduced the ability to pass an array of post types to `$post_type`.
|
||||
*
|
||||
* @see get_private_posts_cap_sql()
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array|string $post_type Single post type or an array of post types.
|
||||
* @param bool $full Optional. Returns a full WHERE statement instead of just
|
||||
@@ -5367,9 +5366,9 @@ function get_lastpostmodified( $timezone = 'server', $post_type = 'any' ) {
|
||||
* @since 4.4.0 The `$post_type` argument was added.
|
||||
* @access private
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $timezone The timezone for the timestamp. See {@see get_lastpostdate()}
|
||||
* @param string $timezone The timezone for the timestamp. See get_lastpostdate().
|
||||
* for information on accepted values.
|
||||
* @param string $field Post field to check. Accepts 'date' or 'modified'.
|
||||
* @param string $post_type Optional. The post type to check. Default 'any'.
|
||||
@@ -5842,9 +5841,9 @@ function _update_term_count_on_transition_post_status( $new_status, $old_status,
|
||||
*
|
||||
* @see update_post_caches()
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $ids ID list
|
||||
* @param array $ids ID list.
|
||||
* @param bool $update_term_cache Optional. Whether to update the term cache. Default true.
|
||||
* @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true.
|
||||
*/
|
||||
|
||||
@@ -2127,7 +2127,8 @@ class WP_Query {
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $q Query variables.
|
||||
* @return string WHERE clause.
|
||||
*/
|
||||
@@ -2268,7 +2269,7 @@ class WP_Query {
|
||||
/**
|
||||
* Generate SQL for the ORDER BY condition based on passed search terms.
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $q Query variables.
|
||||
* @return string ORDER BY clause.
|
||||
@@ -2478,7 +2479,7 @@ class WP_Query {
|
||||
* @since 1.5.0
|
||||
* @access public
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @return array List of posts.
|
||||
*/
|
||||
@@ -3789,7 +3790,7 @@ class WP_Query {
|
||||
* @since 3.5.0
|
||||
* @access private
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
private function set_found_posts( $q, $limits ) {
|
||||
global $wpdb;
|
||||
|
||||
@@ -582,7 +582,7 @@ function _wp_get_post_revision_version( $revision ) {
|
||||
* @since 3.6.0
|
||||
* @access private
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param WP_Post $post Post object
|
||||
* @param array $revisions Current revisions of the post
|
||||
|
||||
@@ -3849,7 +3849,7 @@ function _update_generic_term_count( $terms, $taxonomy ) {
|
||||
* @since 4.3.0 Introduced `$record` parameter. Also, `$term_id` and
|
||||
* `$term_taxonomy_id` can now accept objects.
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int|object $term_id ID of the shared term, or the shared term object.
|
||||
* @param int|object $term_taxonomy_id ID of the term_taxonomy item to receive a new term, or the term_taxonomy object
|
||||
@@ -4105,7 +4105,7 @@ function _wp_check_split_default_terms( $term_id, $new_term_id, $term_taxonomy_i
|
||||
* @ignore
|
||||
* @since 4.2.0
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $term_id ID of the formerly shared term.
|
||||
* @param int $new_term_id ID of the new term created for the $term_taxonomy_id.
|
||||
|
||||
@@ -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