rebase on oct-10-2023
This commit is contained in:
@@ -494,7 +494,7 @@ class WP_Date_Query {
|
||||
);
|
||||
|
||||
// Attempt to detect a table prefix.
|
||||
if ( false === strpos( $column, '.' ) ) {
|
||||
if ( ! str_contains( $column, '.' ) ) {
|
||||
/**
|
||||
* Filters the list of valid date query columns.
|
||||
*
|
||||
@@ -685,11 +685,11 @@ class WP_Date_Query {
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @param array $query Date query arguments.
|
||||
* @return string[] {
|
||||
* @return array {
|
||||
* Array containing JOIN and WHERE SQL clauses to append to the main query.
|
||||
*
|
||||
* @type string $join SQL fragment to append to the main JOIN clause.
|
||||
* @type string $where SQL fragment to append to the main WHERE clause.
|
||||
* @type string[] $join Array of SQL fragments to append to the main JOIN clause.
|
||||
* @type string[] $where Array of SQL fragments to append to the main WHERE clause.
|
||||
* }
|
||||
*/
|
||||
protected function get_sql_for_subquery( $query ) {
|
||||
@@ -705,11 +705,11 @@ class WP_Date_Query {
|
||||
*
|
||||
* @param array $query Date query clause.
|
||||
* @param array $parent_query Parent query of the current date query.
|
||||
* @return string[] {
|
||||
* @return array {
|
||||
* Array containing JOIN and WHERE SQL clauses to append to the main query.
|
||||
*
|
||||
* @type string $join SQL fragment to append to the main JOIN clause.
|
||||
* @type string $where SQL fragment to append to the main WHERE clause.
|
||||
* @type string[] $join Array of SQL fragments to append to the main JOIN clause.
|
||||
* @type string[] $where Array of SQL fragments to append to the main WHERE clause.
|
||||
* }
|
||||
*/
|
||||
protected function get_sql_for_clause( $query, $parent_query ) {
|
||||
|
||||
Reference in New Issue
Block a user