PluginProbe
SendWP / 0.0.2
SendWP v0.0.2
trunk 0.0.1 0.0.2 0.0.3 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1 1.2.10 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.3.1 1.4.4 1.4.5 1.4.6 1.4.8
← All changes | sendwp.php +7 -9 1.0.00.0.2 View file →
@@ -2,18 +2,12 @@
2 2
3 3 /**
4 4 * Plugin Name: SendWP
5 5 * Description: The easy solution to transactional email in WordPress.
6 - * Author: The SendWP Team
7 - * Version: 1.0.0
8 - * Requires PHP: 5.6
6 + * Version: 0.0.2
9 7 */
10 8
11 -if (version_compare(PHP_VERSION, '5.6', '<')) {
12 - require_once plugin_dir_path(__FILE__) . 'includes/compatibility.php';
13 - add_action('admin_notices', 'sendwp_below_php_version_notice');
14 - return;
15 -}
9 +// @TODO Add PHP Version check.
16 10
17 11 require_once plugin_dir_path(__FILE__) . 'assets/load.php';
18 12 require_once plugin_dir_path(__FILE__) . 'includes/api/load.php';
19 13
@@ -25,5 +19,9 @@
25 19 if (is_admin()) {
26 20 require_once plugin_dir_path(__FILE__) . 'includes/admin/load.php';
27 21 }
28 22
29 -require_once plugin_dir_path(__FILE__) . 'includes/activation.php';
23 +register_activation_hook(__FILE__, function () {
24 + if (! sendwp_get_client_secret()) {
25 + sendwp_set_client_secret(sendwp_generate_secret());
26 + }
27 +});