Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
florianbrinkmann committed Jul 25, 2017
1 parent 7aca305 commit 21aa609
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 2.0.2 - 25.07.2017

### Fixed

* Issue with renaming plugins or themes which should not get updates from GitLab updater. The issue leads in renamed
directories, so WordPress cannot find the plugin/theme after an update and deactivates it.

## 2.0.1 - 08.07.2017

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/plugin-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function __construct( $args = [] ) {
/**
* Check if the currently updated plugin matches our plugin base name.
*/
if ( $args['plugin'] === $plugin['settings-array-key'] ) {
if ( $args['plugin'] === $plugin['settings-array-key'] && false !== $plugin ) {
$source = $this->filter_source_name( $source, $remote_source, $plugin['slug'] );
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/theme-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function __construct( $args = [] ) {
/**
* Check if the currently updated theme matches our theme slug.
*/
if ( $args['theme'] === $theme['settings-array-key'] ) {
if ( $args['theme'] === $theme['settings-array-key'] && false !== $theme ) {
$source = $this->filter_source_name( $source, $remote_source, $theme['settings-array-key'] );
}
}
Expand Down

0 comments on commit 21aa609

Please sign in to comment.