| @@ -70,14 +70,8 @@ | ||
| 70 | 70 | |
| 71 | 71 | $this->db_version = $this->get_db_version(); |
| 72 | 72 | $this->stream_url = self_admin_url( $this->plugin->admin->admin_parent_page . '&page=' . $this->plugin->admin->settings_page_slug ); |
| 73 | 73 | |
| 74 | - // Ensure the tables are created even when the plugin activation hook does not run, | |
| 75 | - // and run the check in WP Admin or on WP CLI to avoid extra frontend load. | |
| 76 | - if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) { | |
| 77 | - $this->check(); | |
| 78 | - } | |
| 79 | - | |
| 80 | 74 | register_activation_hook( $this->plugin->locations['plugin'], array( $this, 'check' ) ); |
| 81 | 75 | } |
| 82 | 76 | |
| 83 | 77 | /** |