rebase on oct-10-2023

This commit is contained in:
Rachit Bhargava
2023-10-10 17:23:21 -04:00
parent d37566ffb6
commit d096058d7d
4789 changed files with 254611 additions and 307223 deletions

View File

@@ -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 ) {