PluginProbe
SendWP / 1.2.5
SendWP v1.2.5
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 | includes/admin/load.php +2 -10 trunk1.2.5 View file →
@@ -3,10 +3,9 @@
3 3 add_action( 'admin_menu', function () {
4 4 $page_title = $menu_title = __( 'SendWP', 'sendwp' );
5 5 $capability = 'manage_options';
6 6 $menu_slug = 'sendwp';
7 -
8 - $function = function () {
7 + $function = function () {
9 8 do_action('sendwp_heartbeat');
10 9 $vars = [
11 10 'enabled' => __('SendWP is currently enabled and sending email.', 'sendwp'),
12 11 'disabled' => __('SendWP is currently disabled and NOT sending email.', 'sendwp'),
@@ -17,15 +16,8 @@
17 16 wp_enqueue_script('sendwp-settings', plugins_url( 'assets/js/admin/settings.js', dirname(__DIR__)));
18 17 wp_localize_script('sendwp-settings', 'sendwpAdmin', $vars);
19 18 wp_enqueue_style('sendwp-settings', plugins_url( 'assets/css/admin/settings.css', dirname(__DIR__)));
20 19 };
21 -
22 - if( isset( $_GET['page'] ) && $_GET['page'] === 'sendwp' && ! empty( $_GET['grant-access'] ) ) {
23 - $function = function() {
24 - do_action( 'trustedlogin/sendwp/auth_screen' );
25 - };
26 - }
27 -
28 20 $position = 100; // After bottom seperator.
29 21
30 22 add_submenu_page( 'tools.php', $page_title, $menu_title, $capability, $menu_slug, $function, $position );
31 -} );
23 +} );