mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
Correct references of @uses $wpdb in core documentation to use @global.
See #30191, [30105]. Fixes #30217. git-svn-id: https://develop.svn.wordpress.org/trunk@30122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -112,7 +112,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
/**
|
||||
* Create the date options fields for exporting a given post type.
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database object.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @global WP_Locale $wp_locale Date and Time Locale object.
|
||||
*
|
||||
* @since 3.1.0
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
* Determine if a comment exists based on author and date.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @uses $wpdb
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $comment_author Author of the comment
|
||||
* @param string $comment_date Date of the comment
|
||||
@@ -110,7 +111,8 @@ function get_comment_to_edit( $id ) {
|
||||
* Get the number of pending comments on a post or posts
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @uses $wpdb
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int|array $post_id Either a single Post ID or an array of Post IDs
|
||||
* @return int|array Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs
|
||||
|
||||
@@ -324,7 +324,8 @@ $wp_queries = wp_get_db_schema( 'all' );
|
||||
* Create WordPress options and set the default values.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @uses $wpdb
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
* @uses $wp_db_version
|
||||
*/
|
||||
function populate_options() {
|
||||
|
||||
@@ -44,7 +44,7 @@ if ( ! function_exists('maybe_create_table') ) :
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @uses $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $table_name Database table name.
|
||||
* @param string $create_ddl Create database table SQL.
|
||||
@@ -76,7 +76,7 @@ if ( ! function_exists('maybe_add_column') ) :
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @uses $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $table_name Database table name
|
||||
* @param string $column_name Table column name
|
||||
@@ -110,7 +110,7 @@ endif;
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @uses $wpdb
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $table_name Table name
|
||||
* @param string $column_name Column name
|
||||
|
||||
Reference in New Issue
Block a user