Skip to content

Commit a0ad195

Browse files
danielbachhuberbaizmandesign
authored andcommitted
Actually delete the correct upgrade transient
1 parent f5101e4 commit a0ad195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WP_CLI/CommandWithUpgrade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,9 @@ static function ( $result ) {
532532
// phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore -- Whitelisting to provide backward compatibility to classes possibly extending this class.
533533
protected function _list( $_, $assoc_args ) {
534534

535-
// If `--force-check` flag is present, delete the ${item_type} transient.
535+
// If `--force-check` flag is present, delete the upgrade transient.
536536
if ( true === (bool) Utils\get_flag_value( $assoc_args, 'force-check', false ) ) {
537-
delete_site_transient( $this->item_type . 's' );
537+
delete_site_transient( $this->upgrade_transient );
538538
}
539539

540540
// Force WordPress to check for updates if `--skip-update-check` is not passed.

0 commit comments

Comments
 (0)