Skip to content

Commit

Permalink
Merge pull request #54 from Codeinwp/dev
Browse files Browse the repository at this point in the history
fix: uninstall feedback should load only on the proper pages
  • Loading branch information
selul authored May 21, 2019
2 parents 7ead6c0 + 274277f commit 259e78f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Modules/Uninstall_feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ class Uninstall_Feedback extends Abstract_Module {
* Loads the additional resources
*/
function load_resources() {
$screen = get_current_screen();

if ( ! $screen || ! in_array( $screen->id, array( 'theme-install', 'plugins' ) ) ) {
return;
}

add_thickbox();

$id = $this->product->get_key() . '_deactivate';
Expand Down

0 comments on commit 259e78f

Please sign in to comment.