PluginProbe
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO / 2.8.0
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO v2.8.0
2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 trunk 1.0.0 1.0.1 1.0.2 1.1.0 All 49 releases
← All changes | includes/abilities/settings/class-send-email-report-test.php +6 -4 1.26.02.8.0 View file →
@@ -31,9 +31,9 @@
31 31 */
32 32 public function __construct() {
33 33 $this->id = 'thinkrank/send-email-report-test';
34 34 $this->label = __( 'Send ThinkRank Test Email Report', 'thinkrank' );
35 - $this->description = __( 'Send an immediate one-off test of the ThinkRank Email Report to the configured recipients using the current saved settings. Does not change the schedule. Fails if no recipients are configured.', 'thinkrank' );
35 + $this->description = __( 'Send an immediate one-off test of the ThinkRank Email Report to the configured recipients using the current saved settings. Does not change the schedule. Fails if no recipients are configured. update-email-report-settings changes what it sends.', 'thinkrank' );
36 36 }
37 37
38 38 /**
39 39 * {@inheritDoc}
@@ -58,9 +58,9 @@
58 58 public function get_input_schema() {
59 59 return [
60 60 'type' => 'object',
61 61 'additionalProperties' => false,
62 - 'properties' => [],
62 + 'properties' => self::empty_properties(),
63 63 ];
64 64 }
65 65
66 66 /**
@@ -75,9 +75,9 @@
75 75 'success' => [ 'type' => 'boolean' ],
76 76 'message' => [ 'type' => 'string' ],
77 77 'result' => [
78 78 'type' => 'object',
79 - 'description' => __( 'Raw generator result (send status, error, or skip reason).', 'thinkrank' ),
79 + 'description' => __( 'Raw generator result: send status, error or skip reason, and not_connected (true when the test went out as the "connect Search Console" email because Google Search Console is not connected).', 'thinkrank' ),
80 80 'additionalProperties' => true,
81 81 ],
82 82 ],
83 83 ];
@@ -119,9 +119,11 @@
119 119 }
120 120
121 121 return [
122 122 'success' => true,
123 - 'message' => __( 'Test email report sent.', 'thinkrank' ),
123 + 'message' => ! empty( $result['not_connected'] )
124 + ? __( 'Test email sent. Google Search Console is not connected, so it explains how to connect rather than showing a report; scheduled reports are paused until then.', 'thinkrank' )
125 + : __( 'Test email report sent.', 'thinkrank' ),
124 126 'result' => $result,
125 127 ];
126 128 }
127 129