mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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
|
||||
*
|
||||
* @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).
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @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.
|
||||
|
Loading…
Reference in New Issue
Block a user