- fixed issues with admin notices and their priority;

This commit is contained in:
nikitozzzzzzz
2018-04-03 11:46:30 +03:00
parent 39f55b2906
commit f2b6249516
11 changed files with 435 additions and 164 deletions
+4 -4
View File
@@ -39,16 +39,16 @@ if ( ! class_exists( 'um\admin\core\Admin_Upgrade' ) ) {
$this->necessary_packages = $this->need_run_upgrades();
if ( ! empty( $this->necessary_packages ) ) {
add_action( 'admin_notices', array( $this, 'need_upgrade' ) );
//add_action( 'admin_notices', array( $this, 'need_upgrade' ) );
$this->init_packages_ajax();
add_action( 'admin_menu', array( $this, 'admin_menu' ), 0 );
add_action( 'wp_ajax_um_run_package', array( $this, 'ajax_run_package' ) );
add_action( 'wp_ajax_um_get_packages', array( $this, 'ajax_get_packages' ) );
} else {
add_action( 'admin_notices', array( $this, 'updated_successfully' ) );
}
} /*else {
//add_action( 'admin_notices', array( $this, 'updated_successfully' ) );
}*/
}