mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Docs: Add missing descriptions for the $wpdb
global in DocBlocks all the places.
See #32246. Built from https://develop.svn.wordpress.org/trunk@35170 git-svn-id: http://core.svn.wordpress.org/trunk@35136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
43c10f7d35
commit
217b661703
@ -12,7 +12,7 @@ class WP_Importer {
|
|||||||
/**
|
/**
|
||||||
* Returns array with imported permalinks from WordPress database
|
* Returns array with imported permalinks from WordPress database
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $importer_name
|
* @param string $importer_name
|
||||||
* @param string $bid
|
* @param string $bid
|
||||||
@ -52,7 +52,7 @@ class WP_Importer {
|
|||||||
/**
|
/**
|
||||||
* Return count of imported permalinks from WordPress database
|
* Return count of imported permalinks from WordPress database
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $importer_name
|
* @param string $importer_name
|
||||||
* @param string $bid
|
* @param string $bid
|
||||||
@ -81,7 +81,7 @@ class WP_Importer {
|
|||||||
/**
|
/**
|
||||||
* Set array with imported comments from WordPress database
|
* Set array with imported comments from WordPress database
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $bid
|
* @param string $bid
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -2693,7 +2693,7 @@ class WP_Automatic_Updater {
|
|||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $type The type of update being checked: 'core', 'theme',
|
* @param string $type The type of update being checked: 'core', 'theme',
|
||||||
* 'plugin', 'translation'.
|
* 'plugin', 'translation'.
|
||||||
|
@ -260,7 +260,7 @@ function export_wp( $args = array() ) {
|
|||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param array $post_ids Array of post IDs to filter the query by. Optional.
|
* @param array $post_ids Array of post IDs to filter the query by. Optional.
|
||||||
*/
|
*/
|
||||||
|
@ -36,7 +36,7 @@ function media_upload_tabs() {
|
|||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param array $tabs
|
* @param array $tabs
|
||||||
* @return array $tabs with gallery if post has image attachment
|
* @return array $tabs with gallery if post has image attachment
|
||||||
|
@ -47,7 +47,7 @@ function check_upload_size( $file ) {
|
|||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $blog_id Blog ID.
|
* @param int $blog_id Blog ID.
|
||||||
* @param bool $drop True if blog's table should be dropped. Default is false.
|
* @param bool $drop True if blog's table should be dropped. Default is false.
|
||||||
@ -177,7 +177,7 @@ function wpmu_delete_blog( $blog_id, $drop = false ) {
|
|||||||
*
|
*
|
||||||
* @todo Merge with wp_delete_user() ?
|
* @todo Merge with wp_delete_user() ?
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $id The user ID.
|
* @param int $id The user ID.
|
||||||
* @return bool True if the user was deleted, otherwise false.
|
* @return bool True if the user was deleted, otherwise false.
|
||||||
@ -505,7 +505,7 @@ function upload_space_setting( $id ) {
|
|||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $id The user ID.
|
* @param int $id The user ID.
|
||||||
* @param string $pref The column in the wp_users table to update the user's status
|
* @param string $pref The column in the wp_users table to update the user's status
|
||||||
@ -936,7 +936,7 @@ function revoke_super_admin( $user_id ) {
|
|||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $site_id The network/site ID to check.
|
* @param int $site_id The network/site ID to check.
|
||||||
* @return bool True if network can be edited, otherwise false.
|
* @return bool True if network can be edited, otherwise false.
|
||||||
|
@ -936,7 +936,7 @@ function wp_nav_menu_manage_columns() {
|
|||||||
* @access private
|
* @access private
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function _wp_delete_orphaned_draft_menu_items() {
|
function _wp_delete_orphaned_draft_menu_items() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @return Whether a network exists.
|
* @return Whether a network exists.
|
||||||
*/
|
*/
|
||||||
@ -45,7 +45,7 @@ function allow_subdomain_install() {
|
|||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @return bool Whether subdirectory install is allowed
|
* @return bool Whether subdirectory install is allowed
|
||||||
*/
|
*/
|
||||||
@ -293,7 +293,7 @@ function network_step1( $errors = false ) {
|
|||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param WP_Error $errors
|
* @param WP_Error $errors
|
||||||
*/
|
*/
|
||||||
|
@ -173,7 +173,7 @@ function _wp_translate_postdata( $update = false, $post_data = null ) {
|
|||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param array $post_data Optional.
|
* @param array $post_data Optional.
|
||||||
* @return int Post ID.
|
* @return int Post ID.
|
||||||
@ -403,7 +403,7 @@ function edit_post( $post_data = null ) {
|
|||||||
*
|
*
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param array $post_data Optional, the array of post data to process if not provided will use $_POST superglobal.
|
* @param array $post_data Optional, the array of post data to process if not provided will use $_POST superglobal.
|
||||||
* @return array
|
* @return array
|
||||||
@ -659,7 +659,7 @@ function get_default_post_to_edit( $post_type = 'post', $create_in_db = false )
|
|||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $title Post title
|
* @param string $title Post title
|
||||||
* @param string $content Optional post content
|
* @param string $content Optional post content
|
||||||
@ -843,7 +843,7 @@ function delete_meta( $mid ) {
|
|||||||
*
|
*
|
||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
@ -876,7 +876,7 @@ function get_post_meta_by_id( $mid ) {
|
|||||||
*
|
*
|
||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $postid
|
* @param int $postid
|
||||||
* @return mixed
|
* @return mixed
|
||||||
@ -1074,7 +1074,7 @@ function wp_edit_posts_query( $q = false ) {
|
|||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $type
|
* @param string $type
|
||||||
* @return mixed
|
* @return mixed
|
||||||
|
@ -27,7 +27,7 @@ $charset_collate = $wpdb->get_charset_collate();
|
|||||||
*
|
*
|
||||||
* @since 3.3.0
|
* @since 3.3.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $scope Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
|
* @param string $scope Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
|
||||||
* @param int $blog_id Optional. The blog ID for which to retrieve SQL. Default is the current blog ID.
|
* @param int $blog_id Optional. The blog ID for which to retrieve SQL. Default is the current blog ID.
|
||||||
|
@ -568,7 +568,7 @@ function _list_meta_row( $entry, &$count ) {
|
|||||||
*
|
*
|
||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param WP_Post $post Optional. The post being edited.
|
* @param WP_Post $post Optional. The post being edited.
|
||||||
*/
|
*/
|
||||||
@ -758,7 +758,7 @@ function page_template_dropdown( $default = '' ) {
|
|||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
* @since 4.4.0 `$post` argument was added.
|
* @since 4.4.0 `$post` argument was added.
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $default Optional. The default page ID to be pre-selected. Default 0.
|
* @param int $default Optional. The default page ID to be pre-selected. Default 0.
|
||||||
* @param int $parent Optional. The parent page ID. Default 0.
|
* @param int $parent Optional. The parent page ID. Default 0.
|
||||||
|
@ -392,7 +392,7 @@ if ( !function_exists('wp_upgrade') ) :
|
|||||||
*
|
*
|
||||||
* @global int $wp_current_db_version
|
* @global int $wp_current_db_version
|
||||||
* @global int $wp_db_version
|
* @global int $wp_db_version
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function wp_upgrade() {
|
function wp_upgrade() {
|
||||||
global $wp_current_db_version, $wp_db_version, $wpdb;
|
global $wp_current_db_version, $wp_db_version, $wpdb;
|
||||||
@ -554,7 +554,7 @@ function upgrade_all() {
|
|||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function upgrade_100() {
|
function upgrade_100() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -612,7 +612,7 @@ function upgrade_100() {
|
|||||||
*
|
*
|
||||||
* @since 1.0.1
|
* @since 1.0.1
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function upgrade_101() {
|
function upgrade_101() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -632,7 +632,7 @@ function upgrade_101() {
|
|||||||
*
|
*
|
||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function upgrade_110() {
|
function upgrade_110() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -694,7 +694,7 @@ function upgrade_110() {
|
|||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function upgrade_130() {
|
function upgrade_130() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -780,7 +780,7 @@ function upgrade_130() {
|
|||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @global int $wp_current_db_version
|
* @global int $wp_current_db_version
|
||||||
*/
|
*/
|
||||||
function upgrade_160() {
|
function upgrade_160() {
|
||||||
@ -866,7 +866,7 @@ function upgrade_160() {
|
|||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @global int $wp_current_db_version
|
* @global int $wp_current_db_version
|
||||||
*/
|
*/
|
||||||
function upgrade_210() {
|
function upgrade_210() {
|
||||||
@ -913,7 +913,7 @@ function upgrade_210() {
|
|||||||
*
|
*
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @global int $wp_current_db_version
|
* @global int $wp_current_db_version
|
||||||
*/
|
*/
|
||||||
function upgrade_230() {
|
function upgrade_230() {
|
||||||
@ -1092,7 +1092,7 @@ function upgrade_230() {
|
|||||||
*
|
*
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function upgrade_230_options_table() {
|
function upgrade_230_options_table() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -1108,7 +1108,7 @@ function upgrade_230_options_table() {
|
|||||||
*
|
*
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function upgrade_230_old_tables() {
|
function upgrade_230_old_tables() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -1122,7 +1122,7 @@ function upgrade_230_old_tables() {
|
|||||||
*
|
*
|
||||||
* @since 2.2.0
|
* @since 2.2.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function upgrade_old_slugs() {
|
function upgrade_old_slugs() {
|
||||||
// Upgrade people who were using the Redirect Old Slugs plugin.
|
// Upgrade people who were using the Redirect Old Slugs plugin.
|
||||||
@ -1151,7 +1151,7 @@ function upgrade_250() {
|
|||||||
*
|
*
|
||||||
* @since 2.5.2
|
* @since 2.5.2
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function upgrade_252() {
|
function upgrade_252() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -1178,7 +1178,7 @@ function upgrade_260() {
|
|||||||
*
|
*
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @global int $wp_current_db_version
|
* @global int $wp_current_db_version
|
||||||
*/
|
*/
|
||||||
function upgrade_270() {
|
function upgrade_270() {
|
||||||
@ -1198,7 +1198,7 @@ function upgrade_270() {
|
|||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*
|
*
|
||||||
* @global int $wp_current_db_version
|
* @global int $wp_current_db_version
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function upgrade_280() {
|
function upgrade_280() {
|
||||||
global $wp_current_db_version, $wpdb;
|
global $wp_current_db_version, $wpdb;
|
||||||
@ -1247,7 +1247,7 @@ function upgrade_290() {
|
|||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @global int $wp_current_db_version
|
* @global int $wp_current_db_version
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function upgrade_300() {
|
function upgrade_300() {
|
||||||
global $wp_current_db_version, $wpdb;
|
global $wp_current_db_version, $wpdb;
|
||||||
@ -2568,7 +2568,7 @@ function maybe_disable_automattic_widgets() {
|
|||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
*
|
*
|
||||||
* @global int $wp_current_db_version
|
* @global int $wp_current_db_version
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function maybe_disable_link_manager() {
|
function maybe_disable_link_manager() {
|
||||||
global $wp_current_db_version, $wpdb;
|
global $wp_current_db_version, $wpdb;
|
||||||
@ -2583,7 +2583,7 @@ function maybe_disable_link_manager() {
|
|||||||
* @since 2.9.0
|
* @since 2.9.0
|
||||||
*
|
*
|
||||||
* @global int $wp_current_db_version
|
* @global int $wp_current_db_version
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function pre_schema_upgrade() {
|
function pre_schema_upgrade() {
|
||||||
global $wp_current_db_version, $wpdb;
|
global $wp_current_db_version, $wpdb;
|
||||||
|
@ -234,7 +234,7 @@ function get_user_to_edit( $user_id ) {
|
|||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $user_id User ID.
|
* @param int $user_id User ID.
|
||||||
* @return array
|
* @return array
|
||||||
@ -264,7 +264,7 @@ function get_users_drafts( $user_id ) {
|
|||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $id User ID.
|
* @param int $id User ID.
|
||||||
* @param int $reassign Optional. Reassign posts and links to new User ID.
|
* @param int $reassign Optional. Reassign posts and links to new User ID.
|
||||||
|
@ -154,7 +154,7 @@ function maybe_drop_column($table_name, $column_name, $drop_ddl) {
|
|||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $table_name Table name
|
* @param string $table_name Table name
|
||||||
* @param string $col_name Column name
|
* @param string $col_name Column name
|
||||||
|
@ -319,7 +319,7 @@ function get_author_posts_url($author_id, $author_nicename = '') {
|
|||||||
*
|
*
|
||||||
* @since 1.2.0
|
* @since 1.2.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string|array $args {
|
* @param string|array $args {
|
||||||
* Optional. Array or string of default arguments.
|
* Optional. Array or string of default arguments.
|
||||||
@ -453,7 +453,7 @@ function wp_list_authors( $args = '' ) {
|
|||||||
*
|
*
|
||||||
* @since 3.2.0
|
* @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
|
* @return bool Whether or not we have more than one author
|
||||||
*/
|
*/
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
* @global WP_Rewrite $wp_rewrite
|
* @global WP_Rewrite $wp_rewrite
|
||||||
* @global bool $is_IIS
|
* @global bool $is_IIS
|
||||||
* @global WP_Query $wp_query
|
* @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
|
* @param string $requested_url Optional. The URL that was requested, used to
|
||||||
* figure if redirect is needed.
|
* figure if redirect is needed.
|
||||||
|
@ -454,7 +454,7 @@ class WP_Comment_Query {
|
|||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
* @access protected
|
* @access protected
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
protected function get_comment_ids() {
|
protected function get_comment_ids() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -941,7 +941,7 @@ class WP_Comment_Query {
|
|||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
* @access protected
|
* @access protected
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $string
|
* @param string $string
|
||||||
* @param array $cols
|
* @param array $cols
|
||||||
|
@ -484,7 +484,7 @@ class WP_Meta_Query {
|
|||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param array $clause Query clause, passed by reference.
|
* @param array $clause Query clause, passed by reference.
|
||||||
* @param array $parent_query Parent query array.
|
* @param array $parent_query Parent query array.
|
||||||
|
@ -202,7 +202,7 @@ final class WP_Post {
|
|||||||
* @static
|
* @static
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $post_id Post ID.
|
* @param int $post_id Post ID.
|
||||||
* @return WP_Post|false Post object, false otherwise.
|
* @return WP_Post|false Post object, false otherwise.
|
||||||
|
@ -138,7 +138,7 @@ class WP_Roles {
|
|||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
public function reinit() {
|
public function reinit() {
|
||||||
// There is no need to reinit if using the wp_user_roles global.
|
// There is no need to reinit if using the wp_user_roles global.
|
||||||
|
@ -134,7 +134,7 @@ class WP_User_Query {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @global int $blog_id
|
* @global int $blog_id
|
||||||
*
|
*
|
||||||
* @param string|array $query {
|
* @param string|array $query {
|
||||||
@ -514,7 +514,7 @@ class WP_User_Query {
|
|||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb WordPress database object for queries.
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
public function query() {
|
public function query() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -594,7 +594,7 @@ class WP_User_Query {
|
|||||||
* @access protected
|
* @access protected
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $string
|
* @param string $string
|
||||||
* @param array $cols
|
* @param array $cols
|
||||||
|
@ -102,14 +102,14 @@ class WP_User {
|
|||||||
private static $back_compat_keys;
|
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
|
* @since 2.0.0
|
||||||
* @access public
|
* @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 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
|
* @param string $name Optional. User's username
|
||||||
@ -175,7 +175,7 @@ class WP_User {
|
|||||||
*
|
*
|
||||||
* @static
|
* @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 $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'.
|
||||||
* @param string|int $value The field value
|
* @param string|int $value The field value
|
||||||
@ -418,7 +418,7 @@ class WP_User {
|
|||||||
* @access protected
|
* @access protected
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $cap_key Optional capability key
|
* @param string $cap_key Optional capability key
|
||||||
*/
|
*/
|
||||||
@ -608,7 +608,7 @@ class WP_User {
|
|||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
public function update_user_level_from_caps() {
|
public function update_user_level_from_caps() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -656,7 +656,7 @@ class WP_User {
|
|||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
public function remove_all_caps() {
|
public function remove_all_caps() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -745,7 +745,7 @@ class WP_User {
|
|||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @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.
|
* @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
|
* @since 2.2.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
* Method arguments. Note: arguments must be ordered as documented.
|
* Method arguments. Note: arguments must be ordered as documented.
|
||||||
@ -5066,7 +5066,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $post_ID Post ID.
|
* @param int $post_ID Post ID.
|
||||||
* @param string $post_content Post Content for attachment.
|
* @param string $post_content Post Content for attachment.
|
||||||
@ -5693,7 +5693,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
* Method arguments. Note: arguments must be ordered as documented.
|
* Method arguments. Note: arguments must be ordered as documented.
|
||||||
@ -6032,7 +6032,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $post_ID
|
* @param int $post_ID
|
||||||
* @return array|IXR_Error
|
* @return array|IXR_Error
|
||||||
@ -6122,7 +6122,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*
|
*
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
@ -6333,7 +6333,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $url
|
* @param string $url
|
||||||
* @return array|IXR_Error
|
* @return array|IXR_Error
|
||||||
|
@ -832,7 +832,8 @@ function get_comment_pages_count( $comments = null, $per_page = null, $threaded
|
|||||||
*
|
*
|
||||||
* @since 2.7.0
|
* @since 2.7.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
|
*
|
||||||
* @param int $comment_ID Comment ID.
|
* @param int $comment_ID Comment ID.
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
* Array of optional arguments.
|
* 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`.
|
* @since 4.3.0 'comment_agent' and 'comment_author_IP' can be set via `$commentdata`.
|
||||||
*
|
*
|
||||||
* @see wp_insert_comment()
|
* @see wp_insert_comment()
|
||||||
*
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @global wpdb $wpdb
|
|
||||||
*
|
*
|
||||||
* @param array $commentdata {
|
* @param array $commentdata {
|
||||||
* Comment data.
|
* Comment data.
|
||||||
|
@ -3322,7 +3322,7 @@ function _deep_replace( $search, $subject ) {
|
|||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string|array $data Unescaped data
|
* @param string|array $data Unescaped data
|
||||||
* @return string|array Escaped data
|
* @return string|array Escaped data
|
||||||
@ -3617,7 +3617,7 @@ function wp_make_link_relative( $link ) {
|
|||||||
*
|
*
|
||||||
* @since 2.0.5
|
* @since 2.0.5
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $option The name of the option.
|
* @param string $option The name of the option.
|
||||||
* @param string $value The unsanitised value.
|
* @param string $value The unsanitised value.
|
||||||
|
@ -500,7 +500,7 @@ function wp_extract_urls( $content ) {
|
|||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $content Post Content.
|
* @param string $content Post Content.
|
||||||
* @param int $post_ID Post ID.
|
* @param int $post_ID Post ID.
|
||||||
@ -4317,7 +4317,7 @@ function _cleanup_header_comment( $str ) {
|
|||||||
*
|
*
|
||||||
* @since 2.9.0
|
* @since 2.9.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function wp_scheduled_delete() {
|
function wp_scheduled_delete() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
@ -593,7 +593,7 @@ function allowed_http_request_hosts( $is_external, $host ) {
|
|||||||
*
|
*
|
||||||
* @since 3.6.0
|
* @since 3.6.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @staticvar array $queried
|
* @staticvar array $queried
|
||||||
*
|
*
|
||||||
* @param bool $is_external
|
* @param bool $is_external
|
||||||
|
@ -1550,7 +1550,7 @@ function get_next_post( $in_same_term = false, $excluded_terms = '', $taxonomy =
|
|||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @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 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.
|
* @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
|
* @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 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
|
* @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
|
* @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 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
|
* @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
|
* @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 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
|
* @param int $meta_id ID for a specific meta row
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function wpmu_update_blogs_date() {
|
function wpmu_update_blogs_date() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -68,7 +68,7 @@ function get_blogaddress_by_name( $blogname ) {
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $slug
|
* @param string $slug
|
||||||
* @return int A blog id
|
* @return int A blog id
|
||||||
@ -101,7 +101,7 @@ function get_id_from_blogname( $slug ) {
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @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.
|
* @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.
|
* If not specified the current blog ID is used.
|
||||||
@ -280,7 +280,7 @@ function refresh_blog_details( $blog_id = 0 ) {
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $blog_id Blog ID
|
* @param int $blog_id Blog ID
|
||||||
* @param array $details Array of details keyed by blogs table field names.
|
* @param array $details Array of details keyed by blogs table field names.
|
||||||
@ -781,7 +781,7 @@ function update_archived( $id, $archived ) {
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $blog_id BLog ID
|
* @param int $blog_id BLog ID
|
||||||
* @param string $pref A field name
|
* @param string $pref A field name
|
||||||
@ -857,7 +857,7 @@ function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) {
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $id The blog id
|
* @param int $id The blog id
|
||||||
* @param string $pref A field name
|
* @param string $pref A field name
|
||||||
@ -878,7 +878,7 @@ function get_blog_status( $id, $pref ) {
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param mixed $deprecated Not used
|
* @param mixed $deprecated Not used
|
||||||
* @param int $start The offset
|
* @param int $start The offset
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function ms_upload_constants() {
|
function ms_upload_constants() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
@ -399,7 +399,7 @@ function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) {
|
|||||||
* @since MU 1.0
|
* @since MU 1.0
|
||||||
* @deprecated 4.4.0
|
* @deprecated 4.4.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $sitedomain Optional. Site domain.
|
* @param string $sitedomain Optional. Site domain.
|
||||||
* @param string $path Optional. Site path.
|
* @param string $path Optional. Site path.
|
||||||
|
@ -34,7 +34,7 @@ function get_sitestats() {
|
|||||||
*
|
*
|
||||||
* @since MU 1.0
|
* @since MU 1.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $user_id The unique ID of the user
|
* @param int $user_id The unique ID of the user
|
||||||
* @return object|void The blog object
|
* @return object|void The blog object
|
||||||
@ -195,7 +195,7 @@ function add_user_to_blog( $blog_id, $user_id, $role ) {
|
|||||||
*
|
*
|
||||||
* @since MU 1.0
|
* @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 $user_id ID of the user you're removing.
|
||||||
* @param int $blog_id ID of the blog you're removing the user from.
|
* @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
|
* @since MU 2.6.5
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $domain
|
* @param string $domain
|
||||||
* @param string $path Optional. Not required for subdomain installations.
|
* @param string $path Optional. Not required for subdomain installations.
|
||||||
@ -398,7 +398,7 @@ function is_email_address_unsafe( $user_email ) {
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @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_name The login name provided by the user.
|
||||||
* @param string $user_email The email 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
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $domain The requested domain.
|
* @param string $domain The requested domain.
|
||||||
* @param string $path The requested path.
|
* @param string $path The requested path.
|
||||||
@ -696,7 +696,7 @@ function wpmu_signup_blog( $domain, $path, $title, $user, $user_email, $meta = a
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $user The user's requested login name.
|
* @param string $user The user's requested login name.
|
||||||
* @param string $user_email The user's email address.
|
* @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
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $key The activation key provided to the user.
|
* @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
|
* @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
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $domain The domain to be checked.
|
* @param string $domain The domain to be checked.
|
||||||
* @param string $path The path 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
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $domain The domain of the new site.
|
* @param string $domain The domain of the new site.
|
||||||
* @param string $path The path 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 MU
|
||||||
* @deprecated Use wp_install_defaults()
|
* @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 $blog_id Ignored in this function.
|
||||||
* @param int $user_id
|
* @param int $user_id
|
||||||
@ -1598,7 +1598,7 @@ function get_current_site() {
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $user_id
|
* @param int $user_id
|
||||||
* @return array Contains the blog_id, post_id, post_date_gmt, and post_gmt_ts
|
* @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
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function update_posts_count( $deprecated = '' ) {
|
function update_posts_count( $deprecated = '' ) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -1757,7 +1757,7 @@ function update_posts_count( $deprecated = '' ) {
|
|||||||
*
|
*
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param int $blog_id
|
* @param int $blog_id
|
||||||
* @param int $user_id
|
* @param int $user_id
|
||||||
@ -1776,7 +1776,7 @@ function wpmu_log_new_registrations( $blog_id, $user_id ) {
|
|||||||
*
|
*
|
||||||
* @see term_id_filter
|
* @see term_id_filter
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @staticvar int $global_terms_recurse
|
* @staticvar int $global_terms_recurse
|
||||||
*
|
*
|
||||||
* @param int $term_id An ID for a term on the current blog.
|
* @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
|
* @since MU
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param int $user_id Optional. Defaults to current user.
|
* @param int $user_id Optional. Defaults to current user.
|
||||||
@ -2231,7 +2231,7 @@ function wp_maybe_update_network_user_counts() {
|
|||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function wp_update_network_site_counts() {
|
function wp_update_network_site_counts() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -2245,7 +2245,7 @@ function wp_update_network_site_counts() {
|
|||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
function wp_update_network_user_counts() {
|
function wp_update_network_user_counts() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
@ -2390,7 +2390,7 @@ function wp_is_large_network( $using = 'sites' ) {
|
|||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
* Array of default arguments. Optional.
|
* Array of default arguments. Optional.
|
||||||
|
@ -148,7 +148,7 @@ function wp_get_network( $network ) {
|
|||||||
*
|
*
|
||||||
* @since 3.9.0
|
* @since 3.9.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param string $domain Domain to check.
|
* @param string $domain Domain to check.
|
||||||
* @param string $path Path 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 3.0.0
|
||||||
* @since 4.4.0 The `$domain` and `$path` parameters were added.
|
* @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 $domain The requested domain for the error to reference.
|
||||||
* @param string $path The requested path for the error to reference.
|
* @param string $path The requested path for the error to reference.
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @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 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.
|
* @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
|
* @since 2.2.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @return array List of all options.
|
* @return array List of all options.
|
||||||
*/
|
*/
|
||||||
@ -197,7 +197,7 @@ function wp_load_alloptions() {
|
|||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @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.
|
* @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 1.0.0
|
||||||
* @since 4.2.0 The `$autoload` parameter was added.
|
* @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 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.
|
* @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
|
* @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 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.
|
* @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
|
* @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.
|
* @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.
|
* @return bool True, if option is successfully deleted. False on failure.
|
||||||
|
@ -176,7 +176,7 @@ if ( !function_exists('cache_users') ) :
|
|||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param array $user_ids User ID numbers list
|
* @param array $user_ids User ID numbers list
|
||||||
*/
|
*/
|
||||||
|
@ -2091,7 +2091,7 @@ function _count_posts_cache_key( $type = 'post', $perm = '' ) {
|
|||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @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 $type Optional. Post type to retrieve count. Default 'post'.
|
||||||
* @param string $perm Optional. 'readable' or empty. Default empty.
|
* @param string $perm Optional. 'readable' or empty. Default empty.
|
||||||
@ -2156,7 +2156,7 @@ function wp_count_posts( $type = 'post', $perm = '' ) {
|
|||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @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
|
* @param string|array $mime_type Optional. Array or comma-separated list of
|
||||||
* MIME patterns. Default empty.
|
* MIME patterns. Default empty.
|
||||||
@ -2643,7 +2643,7 @@ function wp_trash_post_comments( $post = null ) {
|
|||||||
*
|
*
|
||||||
* @since 2.9.0
|
* @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.
|
* @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to global $post.
|
||||||
* @return true|void
|
* @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`.
|
* @since 4.3.0 Introduced the ability to pass an array of post types to `$post_type`.
|
||||||
*
|
*
|
||||||
* @see get_private_posts_cap_sql()
|
* @see get_private_posts_cap_sql()
|
||||||
*
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
* @global wpdb $wpdb
|
|
||||||
*
|
*
|
||||||
* @param array|string $post_type Single post type or an array of post types.
|
* @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
|
* @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.
|
* @since 4.4.0 The `$post_type` argument was added.
|
||||||
* @access private
|
* @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.
|
* for information on accepted values.
|
||||||
* @param string $field Post field to check. Accepts 'date' or 'modified'.
|
* @param string $field Post field to check. Accepts 'date' or 'modified'.
|
||||||
* @param string $post_type Optional. The post type to check. Default 'any'.
|
* @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()
|
* @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_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.
|
* @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
|
* @since 3.7.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
|
*
|
||||||
* @param array $q Query variables.
|
* @param array $q Query variables.
|
||||||
* @return string WHERE clause.
|
* @return string WHERE clause.
|
||||||
*/
|
*/
|
||||||
@ -2268,7 +2269,7 @@ class WP_Query {
|
|||||||
/**
|
/**
|
||||||
* Generate SQL for the ORDER BY condition based on passed search terms.
|
* 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.
|
* @param array $q Query variables.
|
||||||
* @return string ORDER BY clause.
|
* @return string ORDER BY clause.
|
||||||
@ -2478,7 +2479,7 @@ class WP_Query {
|
|||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @return array List of posts.
|
* @return array List of posts.
|
||||||
*/
|
*/
|
||||||
@ -3789,7 +3790,7 @@ class WP_Query {
|
|||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
* @access private
|
* @access private
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*/
|
*/
|
||||||
private function set_found_posts( $q, $limits ) {
|
private function set_found_posts( $q, $limits ) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
@ -582,7 +582,7 @@ function _wp_get_post_revision_version( $revision ) {
|
|||||||
* @since 3.6.0
|
* @since 3.6.0
|
||||||
* @access private
|
* @access private
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param WP_Post $post Post object
|
* @param WP_Post $post Post object
|
||||||
* @param array $revisions Current revisions of the post
|
* @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
|
* @since 4.3.0 Introduced `$record` parameter. Also, `$term_id` and
|
||||||
* `$term_taxonomy_id` can now accept objects.
|
* `$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_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
|
* @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
|
* @ignore
|
||||||
* @since 4.2.0
|
* @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 $term_id ID of the formerly shared term.
|
||||||
* @param int $new_term_id ID of the new term created for the $term_taxonomy_id.
|
* @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
|
* @since 4.3.0 Added `$public_only` argument. Added the ability to pass an array
|
||||||
* of post types to `$post_type`.
|
* 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 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'.
|
* @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
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @global wpdb $wpdb
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
*
|
*
|
||||||
* @param array $users Array of user IDs.
|
* @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'.
|
* @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
|
* @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 string $option User option name.
|
||||||
* @param int $user Optional. User ID.
|
* @param int $user Optional. User ID.
|
||||||
@ -420,7 +420,7 @@ function get_user_option( $option, $user = 0, $deprecated = '' ) {
|
|||||||
*
|
*
|
||||||
* @since 2.0.0
|
* @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 int $user_id User ID.
|
||||||
* @param string $option_name User option name.
|
* @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
|
* @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 int $user_id User ID
|
||||||
* @param string $option_name User option name.
|
* @param string $option_name User option name.
|
||||||
@ -490,7 +490,7 @@ function get_users( $args = array() ) {
|
|||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @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 int $user_id User ID
|
||||||
* @param bool $all Whether to retrieve all blogs, or only blogs that are not
|
* @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 3.0.0
|
||||||
* @since 4.4.0 The number of users with no role is now included in the `none` element.
|
* @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'
|
* @param string $strategy 'time' or 'memory'
|
||||||
* @return array Includes a grand total and an array of counts indexed by role strings.
|
* @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
|
* @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().
|
* 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 {
|
* @param array|object|WP_User $userdata {
|
||||||
* An array, object, or WP_User object of user data arguments.
|
* An array, object, or WP_User object of user data arguments.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-35169';
|
$wp_version = '4.4-alpha-35170';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user