PluginProbe
Loginizer / 1.9.5
Loginizer v1.9.5
2.1.0 2.0.9 2.0.8 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 All 74 releases
← All changes | main/admin.php +92 -207 trunk1.9.5 View file →
@@ -3,82 +3,15 @@
3 3 if(!defined('ABSPATH')){
4 4 die('Hacking Attempt!');
5 5 }
6 6
7 -function loginizer_admin_hooks(){
8 - add_action('admin_menu', 'loginizer_admin_menu');
9 - add_action('admin_notices', 'loginizer_social_login_url_alert');
10 - add_action('admin_footer', 'loginizer_social_interim_js');
11 - add_action('admin_init', 'loginizer_admin_actions');
12 - // add_filter("plugin_action_links_plugin_loginizer", 'loginizer_plugin_action_links');
13 -
14 - loginizer_admin_promo_hooks();
15 -}
7 +// HOOKS
8 +add_action('admin_menu', 'loginizer_admin_menu');
9 +add_action('admin_notices', 'loginizer_social_login_url_alert');
10 +add_action('admin_footer', 'loginizer_social_interim_js');
11 +add_action('admin_init', 'loginizer_admin_actions');
12 +//add_filter("plugin_action_links_plugin_loginizer", 'loginizer_plugin_action_links');
16 13
17 -function loginizer_admin_promo_hooks(){
18 - global $loginizer;
19 -
20 - if(!current_user_can('activate_plugins') || defined('SITEPAD')){
21 - return;
22 - }
23 -
24 - // Is the premium features there ?
25 - if(!defined('LOGINIZER_PREMIUM')){
26 - // The promo time
27 - $loginizer['promo_time'] = get_option('loginizer_promo_time');
28 - if(empty($loginizer['promo_time'])){
29 - $loginizer['promo_time'] = time();
30 - update_option('loginizer_promo_time', $loginizer['promo_time']);
31 - }
32 -
33 - // Are we to show the loginizer promo
34 - if(!empty($loginizer['promo_time']) && $loginizer['promo_time'] > 0 && $loginizer['promo_time'] < (time() - (30*24*3600))){
35 - add_action('admin_notices', 'loginizer_promo');
36 - }
37 -
38 - if(!empty($loginizer['csrf_promo']) && $loginizer['csrf_promo'] > 0 && $loginizer['csrf_promo'] < (time() - 86400)){
39 - add_action('admin_notices', 'loginizer_csrf_promo');
40 - }
41 -
42 - // Are we to disable the promo
43 - if(isset($_GET['loginizer_promo']) && (int)$_GET['loginizer_promo'] == 0){
44 - update_option('loginizer_promo_time', (0 - time()) );
45 - die('DONE');
46 - }
47 -
48 - $loginizer['backuply_promo'] = get_option('loginizer_backuply_promo_time');
49 - if(empty($loginizer['backuply_promo'])){
50 - $loginizer['backuply_promo'] = abs($loginizer['promo_time']);
51 - update_option('loginizer_backuply_promo_time', $loginizer['backuply_promo']);
52 - }
53 -
54 - // Setting CSRF Promo time
55 - $loginizer['csrf_promo'] = get_option('loginizer_csrf_promo_time');
56 -
57 - if(empty($loginizer['csrf_promo'])){
58 - $loginizer['csrf_promo'] = abs($loginizer['promo_time']);
59 - update_option('loginizer_csrf_promo_time', $loginizer['csrf_promo']);
60 - }
61 - }
62 -
63 - // === Plugin Update Notice === //
64 - $plugin_update_notice = get_option('softaculous_plugin_update_notice', []);
65 - $available_update_list = get_site_transient('update_plugins');
66 -
67 - if(
68 - !empty($available_update_list) &&
69 - is_object($available_update_list) &&
70 - !empty($available_update_list->response) &&
71 - !empty($available_update_list->response['loginizer/loginizer.php']) &&
72 - (empty($plugin_update_notice) || empty($plugin_update_notice['loginizer/loginizer.php']) || (!empty($plugin_update_notice['loginizer/loginizer.php']) &&
73 - version_compare($plugin_update_notice['loginizer/loginizer.php'], $available_update_list->response['loginizer/loginizer.php']->new_version, '<')))
74 - ){
75 - add_action('admin_notices', 'loginizer_plugin_update_notice');
76 - add_filter('softaculous_plugin_update_notice', 'loginizer_update_notice_filter');
77 - }
78 - // === Plugin Update Notice === //
79 -}
80 -
81 14 function loginizer_admin_actions(){
82 15 global $loginizer;
83 16
84 17 if(defined('LOGINIZER_PREMIUM') && !defined('SITEPAD') && current_user_can('activate_plugins') && isset($_GET['page']) && strpos($_GET['page'], 'loginizer') !== FALSE){
@@ -431,8 +364,31 @@
431 364 </ul>
432 365 <center><a class="button button-primary" target="_blank" href="https://wordpress.org/plugins/pagelayer/">'.__('Visit Pagelayer','loginizer').'</a></center>
433 366 </div>
434 367 </div>';
368 +
369 + echo '
370 + <div class="postbox" style="min-width:0px !important;">
371 + <div class="postbox-header">
372 + <h2 class="hndle ui-sortable-handle">
373 + <span><a target="_blank" href="https://wpcentral.co/?from=loginizer-plugin"><img src="'.LOGINIZER_URL.'/assets/images/wpcentral_product.png" width="100%" /></a></span>
374 + </h2>
375 + </div>
376 + <div class="inside">
377 + <i>'.__('Manage all your WordPress sites from <b>1 dashboard</b> ','loginizer').'</i>:<br>
378 + <ul class="lz-right-ul">
379 + <li>'.__('1-click Admin Access','loginizer').'</li>
380 + <li>'.__('Update WordPress','loginizer').'</li>
381 + <li>'.__('Update Themes','loginizer').'</li>
382 + <li>'.__('Update Plugins','loginizer').'</li>
383 + <li>'.__('Backup your WordPress Site','loginizer').'</li>
384 + <li>'.__('Plugins & Theme Management','loginizer').'</li>
385 + <li>'.__('Post Management','loginizer').'</li>
386 + <li>'.__('And many more ...','loginizer').'</li>
387 + </ul>
388 + <center><a class="button button-primary" target="_blank" href="https://wpcentral.co/?from=loginizer-plugin">'.__('Visit wpCentral','loginizer').'</a></center>
389 + </div>
390 + </div>';
435 391
436 392 }
437 393
438 394 echo '</td>
@@ -459,9 +415,9 @@
459 415 }
460 416 </script>
461 417
462 418 <hr />
463 - <a href="http://loginizer.com" target="_blank">Loginizer</a> v'.LOGINIZER_VERSION.'. '.__('You can report any bugs ','loginizer').'<a href="http://wordpress.org/support/plugin/loginizer" target="_blank">'.__('here','loginizer').'</a>.';
419 + <a href="http://loginizer.com" target="_blank">Loginizer</a> '.__('v'.LOGINIZER_VERSION.'. You can report any bugs ','loginizer').'<a href="http://wordpress.org/support/plugin/loginizer" target="_blank">'.__('here','loginizer').'</a>.';
464 420
465 421 }
466 422
467 423 echo '
@@ -548,19 +504,11 @@
548 504 // Rename Login
549 505 add_submenu_page('loginizer', __('Security Settings', 'loginizer'), __('Rename Login', 'loginizer'), 'activate_plugins', 'loginizer', 'loginizer_security_settings');
550 506
551 507 }
552 -
508 +
553 509 // Brute Force
554 510 add_submenu_page('loginizer', __('Brute Force Settings', 'loginizer'), __('Brute Force', 'loginizer'), 'activate_plugins', 'loginizer_brute_force', 'loginizer_brute_force_settings');
555 -
556 - if(defined('LOGINIZER_PREMIUM')){
557 - // WAF Security Firewall
558 - $expiry_date = strtotime('2026-03-01');
559 - $tag_new = time() < $expiry_date ? '<span style="display: inline-block; margin-left: 10px; padding: 0px 5px; color: #fff; background-color: #d63638; border-radius: 2px;">'.__('New', 'loginizer').'</span>' : '';
560 -
561 - add_submenu_page('loginizer', __('Country Block', 'loginizer'), __('Country Block', 'loginizer').' '.$tag_new, 'activate_plugins', 'loginizer_firewall', 'loginizer_firewall_settings');
562 - }
563 511
564 512 // PasswordLess
565 513 add_submenu_page('loginizer', __($loginizer['prefix'].'PasswordLess Settings', 'loginizer'), __('PasswordLess', 'loginizer'), 'activate_plugins', 'loginizer_passwordless', 'loginizer_passwordless_settings');
566 514
@@ -572,21 +520,21 @@
572 520
573 521 }
574 522
575 523 // reCaptcha
576 - add_submenu_page('loginizer', $loginizer['prefix'].__('reCAPTCHA Settings', 'loginizer'), __('reCAPTCHA', 'loginizer'), 'activate_plugins', 'loginizer_recaptcha', 'loginizer_recaptcha_settings');
524 + add_submenu_page('loginizer', __($loginizer['prefix'].'reCAPTCHA Settings', 'loginizer'), __('reCAPTCHA', 'loginizer'), 'activate_plugins', 'loginizer_recaptcha', 'loginizer_recaptcha_settings');
577 525
578 526 // Temporary Login
579 - add_submenu_page('loginizer', $loginizer['prefix'].__('SSO', 'loginizer'), __('Single Sign On', 'loginizer'). ((time() < strtotime('30 November 2023')) ? ' <span style="color:yellow;">Update</span>' : ''), 'activate_plugins', 'loginizer_sso', 'loginizer_sso_settings');
527 + add_submenu_page('loginizer', __($loginizer['prefix'].'SSO', 'loginizer'), __('Single Sign On', 'loginizer'). ((time() < strtotime('30 November 2023')) ? ' <span style="color:yellow;">Update</span>' : ''), 'activate_plugins', 'loginizer_sso', 'loginizer_sso_settings');
580 528
581 529 // Social Login
582 - $hook_name = add_submenu_page('loginizer', $loginizer['prefix']. __('Social Login', 'loginizer'), __('Social Login', 'loginizer') . (defined('LOGINIZER_PREMIUM') && (time() < strtotime('30 June 2025')) ? ' <span style="color:yellow;font-size:12px;">Updated</span>' : ''), 'activate_plugins', 'loginizer_social_login', 'loginizer_social_login_settings');
530 + $hook_name = add_submenu_page('loginizer', __($loginizer['prefix'].'social_login', 'loginizer'), __('Social Login', 'loginizer') . ((time() < strtotime('30 July 2024')) ? ' <span style="color:red;">New</span>' : ''), 'activate_plugins', 'loginizer_social_login', 'loginizer_social_login_settings');
583 531
584 532 // Security Settings
585 533 if(!defined('SITEPAD')){
586 534
587 535 // Security Settings
588 - add_submenu_page('loginizer', $loginizer['prefix'].__('Security Settings', 'loginizer'), __('Security Settings', 'loginizer'), 'activate_plugins', 'loginizer_security', 'loginizer_security_settings');
536 + add_submenu_page('loginizer', __($loginizer['prefix'].'Security Settings', 'loginizer'), __('Security Settings', 'loginizer'), 'activate_plugins', 'loginizer_security', 'loginizer_security_settings');
589 537
590 538 // File Checksums
591 539 add_submenu_page('loginizer', __('Loginizer File Checksums', 'loginizer'), __('File Checksums', 'loginizer'), 'activate_plugins', 'loginizer_checksums', 'loginizer_checksums_settings');
592 540
@@ -616,60 +564,68 @@
616 564 function loginizer_promo(){
617 565
618 566 echo '
619 567 <style>
620 -.wp-core-ui .lz_button1 {
568 +.lz_button {
569 +background-color: #4CAF50; /* Green */
570 +border: none;
571 +color: white;
572 +padding: 8px 16px;
573 +text-align: center;
574 +text-decoration: none;
575 +display: inline-block;
576 +font-size: 16px;
577 +margin: 4px 2px;
578 +-webkit-transition-duration: 0.4s; /* Safari */
579 +transition-duration: 0.4s;
580 +cursor: pointer;
581 +}
582 +
583 +.lz_button:focus{
584 +border: none;
585 +color: white;
586 +}
587 +
588 +.lz_button1 {
589 +color: white;
621 590 background-color: #4CAF50;
622 -border-color: transparent;
623 -border-radius: 2px;
624 -color: #fff;
591 +border:3px solid #4CAF50;
625 592 }
626 593
627 -.wp-core-ui .lz_button1:hover {
628 -background-color:#3b963f;
629 -border-color: transparent;
630 -border-radius: 2px;
631 -color: #fff;
594 +.lz_button1:hover {
595 +box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
596 +color: white;
597 +border:3px solid #4CAF50;
632 598 }
633 599
634 -.wp-core-ui .lz_button2 {
600 +.lz_button2 {
601 +color: white;
635 602 background-color: #0085ba;
636 -border-color: transparent;
637 -border-radius: 2px;
638 -color: #fff;
639 603 }
640 604
641 -.wp-core-ui .lz_button2:hover {
642 -background-color: #0175a3;
643 -border-color: transparent;
644 -border-radius: 2px;
645 -color: #fff;
605 +.lz_button2:hover {
606 +box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
607 +color: white;
646 608 }
647 609
648 -.wp-core-ui .lz_button3 {
610 +.lz_button3 {
611 +color: white;
649 612 background-color: #365899;
650 -border-color: transparent;
651 -border-radius: 2px;
652 -color: #fff;
653 613 }
654 614
655 -.wp-core-ui .lz_button3:hover {
656 -border-color: transparent;
657 -background-color: #274785;
658 -color:#fff;
615 +.lz_button3:hover {
616 +box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
617 +color: white;
659 618 }
660 619
661 -.wp-core-ui .lz_button4 {
662 -background-color: #14171A;
663 -border-color: transparent;
664 -border-radius: 2px;
665 -color: #fff;
620 +.lz_button4 {
621 +color: white;
622 +background-color: rgb(66, 184, 221);
666 623 }
667 624
668 -.wp-core-ui .lz_button4:hover {
669 -background-color: #24292E;
670 -color: #fff;
671 -border-color: transparent;
625 +.lz_button4:hover {
626 +box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
627 +color: white;
672 628 }
673 629
674 630 .loginizer_promo-close{
675 631 float:right;
@@ -706,12 +662,12 @@
706 662 </a>
707 663 <img src="'.LOGINIZER_URL.'/assets/images/loginizer-200.png" style="float:left; margin:10px 20px 10px 10px" width="100" />
708 664 <p style="font-size:16px">We are glad you like Loginizer and have been using it since the past few days. It is time to take the next step </p>
709 665 <p>
710 - <a class="button lz_button1" target="_blank" href="https://loginizer.com/features">'.esc_html__('Upgrade to Pro', 'loginizer').'</a>
711 - <a class="button lz_button2" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/loginizer">Rate it 5★\'s</a>
712 - <a class="button lz_button3" target="_blank" href="https://www.facebook.com/Loginizer-815504798591884/">'.esc_html__('Like Us on Facebook', 'loginizer').'</a>
713 - <a class="button lz_button4" target="_blank" href="https://x.com/intent/tweet?text='.rawurlencode('I use @loginizer to secure my #WordPress site - https://loginizer.com').'">'.esc_html__('Post on X about Loginizer', 'loginizer').'</a>
666 + <a class="lz_button lz_button1" target="_blank" href="https://loginizer.com/features">Upgrade to Pro</a>
667 + <a class="lz_button lz_button2" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/loginizer">Rate it 5★\'s</a>
668 + <a class="lz_button lz_button3" target="_blank" href="https://www.facebook.com/Loginizer-815504798591884/">Like Us on Facebook</a>
669 + <a class="lz_button lz_button4" target="_blank" href="https://twitter.com/home?status='.rawurlencode('I use @loginizer to secure my #WordPress site - https://loginizer.com').'">Tweet about Loginizer</a>
714 670 </p>
715 671 </div>';
716 672
717 673 }
@@ -748,8 +704,9 @@
748 704 }
749 705
750 706 function loginizer_dashboard(){
751 707 include_once LOGINIZER_DIR . '/main/settings/dashboard.php';
708 +
752 709 loginizer_page_dashboard();
753 710 }
754 711
755 712 function loginizer_sso_settings(){
@@ -763,13 +720,8 @@
763 720
764 721 loginizer_social_login();
765 722 }
766 723
767 -function loginizer_firewall_settings(){
768 - include_once LOGINIZER_PRO_DIR . 'main/settings/waf.php';
769 - loginizer_pro_firewall();
770 -}
771 -
772 724 // Hides the interim login poup after successful login.
773 725 function loginizer_social_interim_js(){
774 726
775 727 if(isset($_GET['interim_login']) && $_GET['interim_login'] === 'lz' && is_user_logged_in()){
@@ -787,11 +739,10 @@
787 739 // We want to show this error to user which has sufficient privilage
788 740 if(!current_user_can('activate_plugins')){
789 741 return;
790 742 }
791 -
792 - $set_login_url = get_option('loginizer_social_login_url', '');
793 - if(empty($set_login_url) || $set_login_url === wp_login_url()){
743 +
744 + if(get_option('loginizer_social_login_url', '') === wp_login_url()){
794 745 return;
795 746 }
796 747
797 748 $provider_settings = get_option('loginizer_provider_settings', []);
@@ -802,23 +753,14 @@
802 753 return;
803 754 }
804 755
805 756 $has_enabled = false;
806 - $has_non_login_auth = false;
807 757 foreach($provider_settings as $provider){
808 - if(empty($provider['loginizer_social_key']) && !empty($provider['enabled'])){
809 - $has_non_login_auth = true;
810 - }
811 -
812 - if(!empty($provider['enabled'])){
758 + if($provider['enabled']){
813 759 $has_enabled = true;
760 + break;
814 761 }
815 762 }
816 -
817 - // We will only show this error if the user is using key based config
818 - if(empty($has_non_login_auth)){
819 - return;
820 - }
821 763
822 764 // If we have no Provider enabled then just show the warning on the social login page.
823 765 if(empty($has_enabled) && (empty($_GET['page']) || $_GET['page'] !== 'loginizer_social_login')){
824 766 return;
@@ -824,9 +766,9 @@
824 766 return;
825 767 }
826 768
827 769 echo '<div class="notice notice-error">
828 - <h4>'.esc_html__('You changed login slug!', 'loginizer').'</h4>
770 + <h4>'.esc_html__('Your changed login slug!', 'loginizer').'</h4>
829 771 <p>'.esc_html__('You changed the login slug and have some social login apps enabled. These social login apps use the login URL as the redirect URI. This means that since the login URL has changed, the social login will now break.', 'loginizer').'</p>
830 772
831 773 <h4>'.esc_html__('How to fix:', 'loginizer').'</h4>
832 774 <p>'.esc_html__('When you created secret keys for the social apps, you also provided a Redirect URI. To fix this issue, you need to update that Redirect URI.', 'loginizer').'<br/>
@@ -857,12 +799,12 @@
857 799 if(!current_user_can('activate_plugins')){
858 800 return;
859 801 }
860 802
861 - /*$notice_end_time = strtotime('31 March 2025');
803 + $notice_end_time = strtotime('31 March 2025');
862 804 if(!empty($notice_end_time) && time() > $notice_end_time){
863 805 return;
864 - }*/
806 + }
865 807
866 808 $softwp_upgrade = get_option('loginizer_softwp_upgrade', 0);
867 809
868 810 if(empty($softwp_upgrade) || $softwp_upgrade < 0){
@@ -867,12 +809,8 @@
867 809
868 810 if(empty($softwp_upgrade) || $softwp_upgrade < 0){
869 811 return;
870 812 }
871 -
872 - if(empty($_GET['page']) || !preg_match('/loginizer/is', $_GET['page'])){
873 - return;
874 - }
875 813
876 814 echo '<style>.loginizer_promo-close{float:right;text-decoration:none;margin: 5px 10px 0px 0px;}.loginizer_promo-close:hover{color: red;}</style>
877 815 <div class="notice notice-warning" id="loginizer_softwp_notice">
878 816 <a class="loginizer_promo-close" id="loginizer-softwp-promo-close" href="javascript:" aria-label="Dismiss Forever">
@@ -877,9 +815,9 @@
877 815 <div class="notice notice-warning" id="loginizer_softwp_notice">
878 816 <a class="loginizer_promo-close" id="loginizer-softwp-promo-close" href="javascript:" aria-label="Dismiss Forever">
879 817 <span class="dashicons dashicons-dismiss"></span> '.esc_html__('Dismiss Forever', 'loginizer').'
880 818 </a>
881 - <p>' . esc_html__('Hey, you might be eligible to access Premium plugins provided by Softaculous for Free ! Please refer to these documents for details on how to avail them.', 'loginizer').'
819 + <p>' . esc_html__('Alert: You might be eligible to access Pro plugins provided by Softaculous for Free! Please refer to these documents for details on how to avail them.', 'loginizer').'
882 820 <a href="https://softwp.net/docs/admin/generate-softwp-license" target="_blank">' . esc_html__('Generate SoftWP License', 'loginizer') . '</a> | <a href="https://softwp.net/docs/admin/installing-plugins" target="_blank">' . esc_html__('How to Install the Pro plugins', 'loginizer') . '</a></p>
883 821 </div>';
884 822
885 823 wp_register_script('loginizer_softwp_alert', '', ['jquery'], LOGINIZER_VERSION, true);
@@ -899,13 +837,8 @@
899 837 }
900 838
901 839 function loginizer_check_expires(){
902 840 global $loginizer;
903 -
904 - // We do not want to show the expiry notice if the license is by SoftWP.
905 - if(!empty($loginizer['license']) && !empty($loginizer['license']['has_plid'])){
906 - return;
907 - }
908 841
909 842 $current_timestamp = time();
910 843 $expiration_timestamp = strtotime($loginizer['license']['expires']);
911 844 $time_diff = $expiration_timestamp - $current_timestamp;
@@ -952,53 +885,5 @@
952 885 var admin_url = "'.admin_url().'"+"admin-ajax.php";
953 886 jQuery.post(admin_url, data, function(response){
954 887 });
955 888 });');
956 -}
957 -
958 -function loginizer_update_notice_filter($plugins = []){
959 - $plugins['loginizer/loginizer.php'] = 'Loginizer';
960 -
961 - return $plugins;
962 -}
963 -
964 -function loginizer_plugin_update_notice(){
965 - if(defined('SOFTACULOUS_PLUGIN_UPDATE_NOTICE')){
966 - return;
967 - }
968 -
969 - $to_update_plugins = apply_filters('softaculous_plugin_update_notice', []);
970 -
971 - if(empty($to_update_plugins)){
972 - return;
973 - }
974 -
975 - /* translators: %1$s is replaced with a "string" of name of plugins, and %2$s is replaced with "string" which can be "is" or "are" based on the count of the plugin */
976 - $msg = sprintf(__('New versions of %1$s %2$s available. Updating ensures better performance, security, and access to the latest features.', 'loginizer'), '<b>'.esc_html(implode(', ', $to_update_plugins)).'</b>', (count($to_update_plugins) > 1 ? 'are' : 'is')) . ' <a class="button button-primary" href='.esc_url(admin_url('plugins.php?plugin_status=upgrade')).'>Update Now</a>';
977 -
978 - define('SOFTACULOUS_PLUGIN_UPDATE_NOTICE', true); // To make sure other plugins don't return a Notice
979 - echo '<div class="notice notice-info is-dismissible" id="loginizer-plugin-update-notice">
980 - <p>'.$msg. '</p>
981 - </div>';
982 -
983 - wp_register_script('loginizer-update-notice', '', ['jquery'], '', true);
984 - wp_enqueue_script('loginizer-update-notice');
985 - wp_add_inline_script('loginizer-update-notice', 'jQuery("#loginizer-plugin-update-notice").on("click", function(e){
986 - let target = jQuery(e.target);
987 -
988 - if(!target.hasClass("notice-dismiss")){
989 - return;
990 - }
991 -
992 - var data;
993 -
994 - // Hide it
995 - jQuery("#loginizer-plugin-update-notice").hide();
996 -
997 - // Save this preference
998 - jQuery.post("'.admin_url('admin-ajax.php?action=loginizer_close_update_notice').'&security='.wp_create_nonce('loginizer_promo_nonce').'", data, function(response) {
999 - //alert(response);
1000 - });
1001 - });');
1002 -}
1003 -
1004 -loginizer_admin_hooks();
889 +}