Skip to content

Commit

Permalink
Merge branch 'release/1.6.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Jan 15, 2025
2 parents 3ba44b1 + 65978d4 commit e50d68a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
== Changelog ==

= 1.6.3 - 15 January 2025 =
* Resolved Uninstall Notice: Updated `register_uninstall_hook` callback to use a static class method, addressing a WordPress notice introduced in version 3.1.0.

= 1.6.2 - 13 January 2025 =
* Fixed uninstall process to prevent PHP fatal error by updating the `register_uninstall_hook` callback to use a valid instance method.

Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ SiteOrigin Premium includes access to our professional email support service, pe

== Changelog ==

= 1.6.3 - 15 January 2025 =
* Resolved Uninstall Notice: Updated `register_uninstall_hook` callback to use a static class method, addressing a WordPress notice introduced in version 3.1.0.

= 1.6.2 - 13 January 2025 =
* Fixed uninstall process to prevent PHP fatal error by updating the `register_uninstall_hook` callback to use a valid instance method.

Expand Down
7 changes: 4 additions & 3 deletions so-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function __construct() {
}
}

register_uninstall_hook( __FILE__, array( $this, 'uninstall' ) );
register_uninstall_hook( __FILE__, array( 'SiteOrigin_CSS', 'uninstall' ) );
}

/**
Expand Down Expand Up @@ -1050,11 +1050,12 @@ public function version_check() {
*
* @return void
*/
public function uninstall() {
public static function uninstall() {
$theme = basename( get_template_directory() );
delete_option( 'so_css_version' );
delete_option( 'so_css_editor_theme' );
delete_option( 'so_css_output_location' );
delete_option( 'siteorigin_custom_css_revisions[' . $this->theme . ']' );
delete_option( 'siteorigin_custom_css_revisions[' . $theme . ']' );
}
}

Expand Down

0 comments on commit e50d68a

Please sign in to comment.