Added signup table if missing
Showing
1 changed file
with
5 additions
and
0 deletions
| ... | @@ -23,6 +23,11 @@ const ACTION_ACTIVATE = 'wpmu_activate_user'; | ... | @@ -23,6 +23,11 @@ const ACTION_ACTIVATE = 'wpmu_activate_user'; |
| 23 | const OPTION_NAME = 'tz_auth'; // Database lookup key (`wp_options`.`option_name`) | 23 | const OPTION_NAME = 'tz_auth'; // Database lookup key (`wp_options`.`option_name`) |
| 24 | 24 | ||
| 25 | call_user_func(function() { | 25 | call_user_func(function() { |
| 26 | global $wpdb; | ||
| 27 | if (empty($wpdb->signups)) { | ||
| 28 | $wpdb->signups = $wpdb->prefix . 'signups'; | ||
| 29 | } | ||
| 30 | |||
| 26 | Vars::$options = new Tools\WP_Option(OPTION_NAME); | 31 | Vars::$options = new Tools\WP_Option(OPTION_NAME); |
| 27 | 32 | ||
| 28 | if (is_admin()) { | 33 | if (is_admin()) { | ... | ... |
-
Please register or sign in to post a comment