Docs: Document the usage of $wpdb global in WP_Date_Query methods.

Follow-up to [25139], [29933], [38280], [38768].

Props upadalavipul.
Fixes #57033.

git-svn-id: https://develop.svn.wordpress.org/trunk@54765 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2022-11-08 13:27:23 +00:00
parent be4f63f00f
commit 057f2e64a5

View File

@ -473,6 +473,8 @@ class WP_Date_Query {
*
* @since 3.7.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $column The user-supplied column name.
* @return string A validated column name value.
*/
@ -699,6 +701,8 @@ class WP_Date_Query {
*
* @since 4.1.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param array $query Date query clause.
* @param array $parent_query Parent query of the current date query.
* @return string[] {
@ -961,6 +965,8 @@ class WP_Date_Query {
*
* @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 $compare The comparison operator. Needs to be pre-validated!
* @param int|null $hour Optional. An hour value (0-23).