Use correct column name for date_updated.

This commit is contained in:
Vedanshu Jain 2023-02-22 17:51:59 +05:30
parent 263758aa83
commit 61b6daae27
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ class OrdersTableQuery {
// WP_Query legacy.
'post_date' => 'date_created',
'post_date_gmt' => 'date_created_gmt',
'post_modified' => 'date_modified',
'post_modified' => 'date_updated',
'post_modified_gmt' => 'date_updated_gmt',
'post_status' => 'status',
'_date_completed' => 'date_completed',

View File

@ -34,7 +34,7 @@ trait DateFilteringForCrudControllers {
* @param bool $filter_by_gmt Whether the dates to filter by are GMT or not.
* @param bool $expected_to_be_returned True if the created item is expected to be included in the response, false otherwise.
*/
public function test_filter_by_creation_or_modification_date_sign1( $param_name, $filter_by_gmt, $expected_to_be_returned ) {
public function test_filter_by_creation_or_modification_date( $param_name, $filter_by_gmt, $expected_to_be_returned ) {
global $wpdb;
$timezone_string_option = get_option( 'timezone_string' );