Changeset 13893 for trunk/src/bp-core/classes/class-bp-date-query.php
- Timestamp:
- 06/02/2024 02:07:21 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-date-query.php
r13184 r13893 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 if ( class_exists( 'WP_Date_Query' ) ) : 13 if ( ! class_exists( 'WP_Date_Query' ) ) { 14 return; 15 } 14 16 15 17 /** … … 26 28 */ 27 29 class BP_Date_Query extends WP_Date_Query { 30 28 31 /** 29 32 * The column to query against. Can be changed via the query arguments. … … 46 49 * 47 50 * @since 2.1.0 48 * @since 10.0.0 Added $prepend_and argument. 51 * @since 10.0.0 Added `$prepend_and` argument. 52 * 53 * @see WP_Date_Query::__construct() 49 54 * 50 55 * @param array $date_query Date query arguments. 51 56 * @param string $column The DB column to query against. 52 57 * @param bool $prepend_and Whether to prepend the 'AND' operator to the WHERE SQL clause. 53 *54 * @see WP_Date_Query::__construct()55 58 */ 56 59 public function __construct( $date_query, $column = '', $prepend_and = false ) { … … 129 132 if ( ! empty( $date_query ) && is_array( $date_query ) && ! empty( $column ) ) { 130 133 $date_query = new self( $date_query, $column, $prepend_and ); 131 $sql = $date_query->get_sql();134 $sql = $date_query->get_sql(); 132 135 } 133 136 … … 135 138 } 136 139 } 137 endif;
Note: See TracChangeset
for help on using the changeset viewer.