Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit a2a19c8

Browse files
committed
Applied coding standards
1 parent c504864 commit a2a19c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ public function get_tools() {
210210
);
211211
}
212212

213-
214213
// Jetpack does the image resizing heavy lifting so you don't have to.
215214
if ( ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) || ! apply_filters( 'woocommerce_background_image_regeneration', true ) ) {
216215
unset( $tools['regenerate_thumbnails'] );
@@ -469,7 +468,7 @@ public function execute_tool( $tool ) {
469468
$wpdb->prepare(
470469
"DELETE FROM {$wpdb->prefix}woocommerce_downloadable_product_permissions
471470
WHERE ( downloads_remaining != '' AND downloads_remaining = 0 ) OR ( access_expires IS NOT NULL AND access_expires < %s )",
472-
date( 'Y-m-d', current_time( 'timestamp' ) )
471+
gmdate( 'Y-m-d', current_time( 'timestamp' ) )
473472
)
474473
)
475474
);
@@ -550,7 +549,7 @@ public function execute_tool( $tool ) {
550549

551550
case 'verify_db_tables':
552551
if ( ! method_exists( 'WC_Install', 'verify_base_tables' ) ) {
553-
$message = __( 'You need WooCommerce 4.2 or newer to run this tool.', 'woocommerce' );
552+
$message = __( 'You need WooCommerce 4.2 or newer to run this tool.', 'woocommerce-rest-api' );
554553
$ran = false;
555554
break;
556555
}

0 commit comments

Comments
 (0)