Ensuring loading scripts only in the options page
This commit is contained in:
Родитель
2ce8c28cc2
Коммит
4d143679eb
|
@ -26,7 +26,7 @@ class WP_Add_To_Homescreen_Admin {
|
|||
add_action('wp_dashboard_setup', array($this, 'add_dashboard_widgets'));
|
||||
add_action('admin_menu', array($this, 'admin_menu'));
|
||||
add_action('admin_init', array($this, 'admin_init'));
|
||||
add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
|
||||
add_action('settings_page_' . self::$options_page_id, array($this, 'enqueue_scripts'));
|
||||
add_action('update_option_' . $this->options->o('theme-color'), array($this, 'regenerate_icon'));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче