Changeset 53798
- Timestamp:
- 07/30/2022 01:59:15 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-date-query.php
r52652 r53798 234 234 235 235 /** 236 * Determine whether this is a first-order clause.236 * Determines whether this is a first-order clause. 237 237 * 238 238 * Checks to see if the current clause has any time-related keys. … … 277 277 * 278 278 * @param array $date_query The date_query array. 279 * @return bool 279 * @return bool True if all values in the query are valid, false if one or more fail. 280 280 */ 281 281 public function validate_date_values( $date_query = array() ) { … … 540 540 541 541 /** 542 * Generate WHERE clause to be appended to a main query.542 * Generates WHERE clause to be appended to a main query. 543 543 * 544 544 * @since 3.7.0 … … 563 563 564 564 /** 565 * Generate SQL clauses to be appended to a main query.565 * Generates SQL clauses to be appended to a main query. 566 566 * 567 567 * Called by the public WP_Date_Query::get_sql(), this method is abstracted … … 588 588 589 589 /** 590 * Generate SQL clauses for a single query array.590 * Generates SQL clauses for a single query array. 591 591 * 592 592 * If nested subqueries are found, this method recurses the tree to … … 859 859 * @since 3.7.0 860 860 * 861 * @param string|array $datetime An array of parameters or a strotime() string 861 * @param string|array $datetime An array of parameters or a strotime() string. 862 862 * @param bool $default_to_max Whether to round up incomplete dates. Supported by values 863 863 * of $datetime that are arrays, or string values that are a 864 864 * subset of MySQL date format ('Y', 'Y-m', 'Y-m-d', 'Y-m-d H:i'). 865 865 * Default: false. 866 * @return string|false A MySQL format date/time or false on failure 866 * @return string|false A MySQL format date/time or false on failure. 867 867 */ 868 868 public function build_mysql_datetime( $datetime, $default_to_max = false ) {
Note: See TracChangeset
for help on using the changeset viewer.