Docs: Document the usage of `$wpdb` global in `WP_Date_Query` methods.
Follow-up to [25139], [29933], [38280], [38768]. Props upadalavipul. Fixes #57033. Built from https://develop.svn.wordpress.org/trunk@54765 git-svn-id: http://core.svn.wordpress.org/trunk@54317 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f011bf7f5b
commit
03f4c7972f
|
@ -473,6 +473,8 @@ class WP_Date_Query {
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
*
|
*
|
||||||
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
|
*
|
||||||
* @param string $column The user-supplied column name.
|
* @param string $column The user-supplied column name.
|
||||||
* @return string A validated column name value.
|
* @return string A validated column name value.
|
||||||
*/
|
*/
|
||||||
|
@ -699,6 +701,8 @@ class WP_Date_Query {
|
||||||
*
|
*
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
*
|
*
|
||||||
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
|
*
|
||||||
* @param array $query Date query clause.
|
* @param array $query Date query clause.
|
||||||
* @param array $parent_query Parent query of the current date query.
|
* @param array $parent_query Parent query of the current date query.
|
||||||
* @return string[] {
|
* @return string[] {
|
||||||
|
@ -961,6 +965,8 @@ class WP_Date_Query {
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
*
|
*
|
||||||
|
* @global wpdb $wpdb WordPress database abstraction object.
|
||||||
|
*
|
||||||
* @param string $column The column to query against. Needs to be pre-validated!
|
* @param string $column The column to query against. Needs to be pre-validated!
|
||||||
* @param string $compare The comparison operator. Needs to be pre-validated!
|
* @param string $compare The comparison operator. Needs to be pre-validated!
|
||||||
* @param int|null $hour Optional. An hour value (0-23).
|
* @param int|null $hour Optional. An hour value (0-23).
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.2-alpha-54762';
|
$wp_version = '6.2-alpha-54765';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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