Changeset 3430383
- Timestamp:
- 01/01/2026 06:54:29 AM (4 weeks ago)
- Location:
- authyo-passwordless-login/trunk
- Files:
-
- 5 added
- 2 edited
-
assets/css/deactivation.css (added)
-
assets/css/email-subscription.css (added)
-
assets/js/deactivation.js (added)
-
assets/js/email-subscription.js (added)
-
authyo-passwordless-login.php (modified) (4 diffs)
-
includes/class-authyo-passwordless-tracker.php (added)
-
includes/class-authyo-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
authyo-passwordless-login/trunk/authyo-passwordless-login.php
r3430361 r3430383 42 42 define('AUTHYO_PASSWORDLESS_LOGIN_URL', plugin_dir_url(__FILE__)); 43 43 } 44 if (!defined('AUTHYO_PASSWORDLESS_LOGIN_BASENAME')) { 45 define('AUTHYO_PASSWORDLESS_LOGIN_BASENAME', plugin_basename(__FILE__)); 46 } 44 47 45 48 // Include required files with existence checks … … 49 52 $authyo_passwordless_login_settings_file = $authyo_passwordless_login_includes_dir . 'class-authyo-settings.php'; 50 53 $authyo_passwordless_login_login_file = $authyo_passwordless_login_includes_dir . 'class-authyo-login.php'; 54 $authyo_passwordless_login_tracker_file = $authyo_passwordless_login_includes_dir . 'class-authyo-passwordless-tracker.php'; 51 55 52 56 // Check file existence without using translation functions (avoid early translation loading) … … 72 76 } 73 77 } 78 if (!file_exists($authyo_passwordless_login_tracker_file)) { 79 if (function_exists('wp_die')) { 80 wp_die('Authyo Passwordless Login plugin error: Required file not found: ' . esc_html($authyo_passwordless_login_tracker_file)); 81 } else { 82 die('Authyo Passwordless Login plugin error: Required file not found: ' . esc_html($authyo_passwordless_login_tracker_file)); 83 } 84 } 74 85 75 86 require_once $authyo_passwordless_login_api_file; 76 87 require_once $authyo_passwordless_login_settings_file; 77 88 require_once $authyo_passwordless_login_login_file; 89 require_once $authyo_passwordless_login_tracker_file; 90 91 // Initialize tracker globally to ensure all hooks are registered early 92 if (class_exists('Authyo_Passwordless_Tracker')) { 93 new Authyo_Passwordless_Tracker(); 94 } 78 95 79 96 /** … … 200 217 return $links; 201 218 } 219 220 /** 221 * Plugin activation hook 222 */ 223 public static function activate() { 224 set_transient('authyo_passwordless_show_email_subscription', true, HOUR_IN_SECONDS); 225 } 202 226 } 203 227 } // End if !class_exists 228 229 // Register activation hook 230 register_activation_hook(__FILE__, array('Authyo_Passwordless_Login', 'activate')); 204 231 205 232 // Initialize the plugin -
authyo-passwordless-login/trunk/includes/class-authyo-settings.php
r3430361 r3430383 149 149 $sanitized['enable_passwordless_login'] = 0; 150 150 } 151 152 // Set transient to trigger tracking in the tracker class 153 set_transient('authyo_passwordless_trigger_tracking', $sanitized, 60); 151 154 152 155 return $sanitized;
Note: See TracChangeset
for help on using the changeset viewer.