mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
be4f63f00f
commit
057f2e64a5
@ -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).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user