Skip to content

Commit

Permalink
fix error Bug fix in CPTP_Module_Setting::upgrader_process_complete.
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Mar 3, 2017
1 parent 5262563 commit 9231242
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CPTP/Module/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ public function update_version() {
* @param array $options Extra information about performed upgrade.
*/
public function upgrader_process_complete( $wp_upgrader, $options ) {
if ( ! empty( $options['plugins'] ) && ! is_array( $options['plugins'] ) ) {

if ( empty( $options['plugins'] ) ) {
return;
}

if ( ! is_array( $options['plugins'] ) ) {
return;
}

Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal

== Changelog ==

= 3.1.1 =
* Bug fix in CPTP_Module_Setting::upgrader_process_complete.

= 3.1.0 =
* Add filter 'CPTP_date_front'.
* Fix sort term by `wp_list_sort` .
Expand Down

0 comments on commit 9231242

Please sign in to comment.