Skip to content

Commit

Permalink
4.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelbart committed Feb 5, 2020
1 parent f7c46f3 commit 2f070c1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions core/classes/class-helpful-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ class Helpful_Setup {
*/
public function __construct()
{
register_activation_hook( HELPFUL_FILE, [ &$this, 'delete_transient' ] );
register_activation_hook( HELPFUL_FILE, [ &$this, 'setup_helpful_table' ] );
register_activation_hook( HELPFUL_FILE, [ &$this, 'setup_feedback_table' ] );
register_activation_hook( HELPFUL_FILE, [ &$this, 'setup_defaults' ] );

add_action( 'init', [ &$this, 'setup_defaults' ] );
add_action( 'activated_plugin', [ &$this, 'load_first' ] );

add_action( 'admin_menu', [ &$this, 'register_admin_menu' ] );
Expand Down Expand Up @@ -95,16 +94,6 @@ public function setup_defaults()
return true;
}

/**
* Update transient for showing maintenance notice.
*
* @return void
*/
public function delete_transient()
{
delete_transient( 'helpful_updated' );
}

/**
* Create database table for helpful
*
Expand Down

0 comments on commit 2f070c1

Please sign in to comment.