Skip to content
Snippets Groups Projects
Commit 73e70ab9 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

feature(generator): generate reminder only when configuration present

parent cde36aeb
No related branches found
No related tags found
3 merge requests!6Feature/no dev,!5Feature/no dev,!3feature(popup): popup
Pipeline #11295 failed with stages
in 1 minute and 5 seconds
......@@ -7,10 +7,8 @@ class Reminder {
private $logo_url = 'logo-url';
public function __construct() {
if ( function_exists( 'add_action' ) ) {
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_reminder_script' ) );
add_action( 'admin_footer', array( $this, 'display_html_element' ) );
}
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_reminder_script' ) );
add_action( 'admin_footer', array( $this, 'display_html_element' ) );
}
public function enqueue_reminder_script() {
......@@ -48,4 +46,6 @@ class Reminder {
}
new Reminder();
if ( function_exists( 'add_action' ) ) {
new Reminder();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment