Skip to content

Commit 78a2d02

Browse files
committed
Use class property
1 parent 65bbb94 commit 78a2d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Plugin_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ public function uninstall( $args, $assoc_args = array() ) {
11691169
}
11701170

11711171
// Remove deleted plugins from the plugin updates list.
1172-
$current = get_site_transient( 'update_plugins' );
1172+
$current = get_site_transient( $this->upgrade_transient );
11731173
if ( $current ) {
11741174
// Don't remove the plugins that weren't deleted.
11751175
$deleted = array_diff( $deleted_plugin_files, $delete_errors );
@@ -1178,7 +1178,7 @@ public function uninstall( $args, $assoc_args = array() ) {
11781178
unset( $current->response[ $plugin_file ] );
11791179
}
11801180

1181-
set_site_transient( 'update_plugins', $current );
1181+
set_site_transient( $this->upgrade_transient, $current );
11821182
}
11831183

11841184
if ( ! $this->chained_command ) {

0 commit comments

Comments
 (0)