SmartCrawl SEO - Version 2.5.1

Version Description

  • New: Minor code improvements
Download this release

Release Info

Developer khaxan
Plugin Icon 128x128 SmartCrawl SEO
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.5.0 to 2.5.1

changelog.txt CHANGED
@@ -2,6 +2,10 @@ Plugin Name: SmartCrawl SEO
2
 
3
  Change Log:
4
  ----------------------------------------------------------------------
 
 
 
 
5
  2.5.0 - 2020-01-16
6
  ----------------------------------------------------------------------
7
  - Add: SEO checkup report revamped to have better recommendations and action buttons
2
 
3
  Change Log:
4
  ----------------------------------------------------------------------
5
+ 2.5.1 - 2020-02-26
6
+ ----------------------------------------------------------------------
7
+ - Add: New endpoints for SEO tab in Hub
8
+
9
  2.5.0 - 2020-01-16
10
  ----------------------------------------------------------------------
11
  - Add: SEO checkup report revamped to have better recommendations and action buttons
includes/admin/settings/settings.php CHANGED
@@ -272,6 +272,8 @@ class Smartcrawl_Settings_Settings extends Smartcrawl_Settings_Admin {
272
 
273
  self::update_specific_options( $this->option_name, $options );
274
 
 
 
275
  wp_redirect( esc_url_raw( add_query_arg( array() ) ) );
276
  }
277
  }
@@ -400,7 +402,7 @@ class Smartcrawl_Settings_Settings extends Smartcrawl_Settings_Admin {
400
  }
401
 
402
  if ( empty( $this->options['checkup'] ) ) {
403
- $this->options['checkup'] = 0;
404
  }
405
 
406
  if ( empty( $this->options['social'] ) ) {
272
 
273
  self::update_specific_options( $this->option_name, $options );
274
 
275
+ do_action( "wds-component-activated-$component" );
276
+
277
  wp_redirect( esc_url_raw( add_query_arg( array() ) ) );
278
  }
279
  }
402
  }
403
 
404
  if ( empty( $this->options['checkup'] ) ) {
405
+ $this->options['checkup'] = 1;
406
  }
407
 
408
  if ( empty( $this->options['social'] ) ) {
includes/admin/settings/sitemap.php CHANGED
@@ -318,6 +318,7 @@ class Smartcrawl_Sitemap_Settings extends Smartcrawl_Settings_Admin {
318
  $this->action_url = admin_url( 'options.php' );
319
  $this->page_title = __( 'SmartCrawl Wizard: Sitemap', 'wds' );
320
 
 
321
  add_action( 'admin_init', array( $this, 'deactivate_sitemap_component' ) );
322
  add_action( 'all_admin_notices', array( $this, 'add_crawl_status_message' ), 10 );
323
 
@@ -328,6 +329,11 @@ class Smartcrawl_Sitemap_Settings extends Smartcrawl_Settings_Admin {
328
  return __( 'Sitemap', 'wds' );
329
  }
330
 
 
 
 
 
 
331
  public function deactivate_sitemap_component() {
332
  $data = $this->get_request_data();
333
  if ( isset( $data['deactivate-sitemap-component'] ) ) {
318
  $this->action_url = admin_url( 'options.php' );
319
  $this->page_title = __( 'SmartCrawl Wizard: Sitemap', 'wds' );
320
 
321
+ add_action( 'wds-component-activated-sitemap', array( $this, 'trigger_crawl_after_activation' ) );
322
  add_action( 'admin_init', array( $this, 'deactivate_sitemap_component' ) );
323
  add_action( 'all_admin_notices', array( $this, 'add_crawl_status_message' ), 10 );
324
 
329
  return __( 'Sitemap', 'wds' );
330
  }
331
 
332
+ public function trigger_crawl_after_activation() {
333
+ $service = Smartcrawl_Service::get( Smartcrawl_Service::SERVICE_SEO );
334
+ $service->start();
335
+ }
336
+
337
  public function deactivate_sitemap_component() {
338
  $data = $this->get_request_data();
339
  if ( isset( $data['deactivate-sitemap-component'] ) ) {
includes/core/class-wds-controller-hub.php CHANGED
@@ -170,5 +170,9 @@ class Smartcrawl_Controller_Hub {
170
  public function json_purge_extras_list( $params = array(), $action = '' ) {
171
  }
172
 
 
 
173
 
 
 
174
  }
170
  public function json_purge_extras_list( $params = array(), $action = '' ) {
171
  }
172
 
173
+ public function json_seo_summary() {
174
+ }
175
 
176
+ public function json_run_checkup() {
177
+ }
178
  }
includes/core/class-wds-controller-onboard.php CHANGED
@@ -94,6 +94,9 @@ class Smartcrawl_Controller_Onboard extends Smartcrawl_Base_Controller {
94
  $opts = Smartcrawl_Settings::get_specific_options( 'wds_settings_options' );
95
  $opts['sitemap'] = true;
96
  Smartcrawl_Settings::update_specific_options( 'wds_settings_options', $opts );
 
 
 
97
  wp_send_json_success();
98
 
99
  return;
94
  $opts = Smartcrawl_Settings::get_specific_options( 'wds_settings_options' );
95
  $opts['sitemap'] = true;
96
  Smartcrawl_Settings::update_specific_options( 'wds_settings_options', $opts );
97
+ // Trigger a new crawl
98
+ $service = Smartcrawl_Service::get( Smartcrawl_Service::SERVICE_SEO );
99
+ $service->start();
100
  wp_send_json_success();
101
 
102
  return;
includes/core/class-wds-controller-robots.php CHANGED
@@ -28,6 +28,12 @@ class Smartcrawl_Controller_Robots extends Smartcrawl_Base_Controller {
28
  return Smartcrawl_Settings::get_setting( 'robots-txt' );
29
  }
30
 
 
 
 
 
 
 
31
  public function serve_robots_file() {
32
  $file_contents = $this->get_robot_file_contents();
33
  $this->output_text( $file_contents );
28
  return Smartcrawl_Settings::get_setting( 'robots-txt' );
29
  }
30
 
31
+ public function robots_active() {
32
+ return $this->robots_enabled()
33
+ && ! $this->file_exists()
34
+ && $this->is_rootdir_install();
35
+ }
36
+
37
  public function serve_robots_file() {
38
  $file_contents = $this->get_robot_file_contents();
39
  $this->output_text( $file_contents );
languages/wds.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the SmartCrawl package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: SmartCrawl 2.5.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpmu-dev-seo\n"
7
- "POT-Creation-Date: 2020-01-25 04:18:39+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -14,7 +14,7 @@ msgstr ""
14
  "X-Generator: grunt-wp-i18n1.0.2\n"
15
 
16
  #: includes/admin/admin.php:117 includes/admin/settings/settings.php:253
17
- #: includes/admin/settings/settings.php:306
18
  #: includes/admin/templates/advanced-tools/advanced-tools-settings.php:107
19
  #: includes/admin/templates/onpage/onpage-settings.php:236
20
  #: includes/admin/templates/onpage/onpage-sidenav.php:23
@@ -109,8 +109,8 @@ msgid "SmartCrawl Wizard: Advanced Tools"
109
  msgstr ""
110
 
111
  #: includes/admin/settings/autolinks.php:278
112
- #: includes/admin/settings/settings.php:305
113
- #: includes/admin/settings/settings.php:343
114
  #: includes/admin/templates/advanced-tools/advanced-tools-settings.php:13
115
  #: includes/admin/templates/dashboard/dashboard-widget-advanced-tools.php:31
116
  #: includes/admin/templates/sitemap/underscore-redirect-dialog-body.php:29
@@ -131,8 +131,8 @@ msgid "SmartCrawl Wizard: SEO Checkup"
131
  msgstr ""
132
 
133
  #: includes/admin/settings/checkup.php:125
134
- #: includes/admin/settings/settings.php:301
135
- #: includes/admin/settings/settings.php:339
136
  #: includes/admin/templates/checkup/checkup-settings.php:13
137
  #: includes/admin/templates/dashboard/dashboard-widget-seo-checkup.php:31
138
  #: includes/core/class-wds-settings.php:277
@@ -190,8 +190,8 @@ msgid "SmartCrawl Wizard: Title & Meta"
190
  msgstr ""
191
 
192
  #: includes/admin/settings/onpage.php:273
193
- #: includes/admin/settings/settings.php:302
194
- #: includes/admin/settings/settings.php:340
195
  #: includes/admin/templates/onpage/onpage-settings.php:11
196
  msgid "Title & Meta"
197
  msgstr ""
@@ -223,17 +223,17 @@ msgstr ""
223
 
224
  #: includes/admin/settings/onpage.php:543
225
  #: includes/admin/settings/sitemap.php:253
226
- #: includes/admin/settings/sitemap.php:435
227
  msgid "Yes"
228
  msgstr ""
229
 
230
  #: includes/admin/settings/onpage.php:547
231
- #: includes/admin/settings/sitemap.php:431
232
  msgid "Google"
233
  msgstr ""
234
 
235
  #: includes/admin/settings/onpage.php:548
236
- #: includes/admin/settings/sitemap.php:432
237
  msgid "Bing"
238
  msgstr ""
239
 
@@ -414,8 +414,8 @@ msgstr ""
414
  msgid "SmartCrawl Wizard: Settings"
415
  msgstr ""
416
 
417
- #: includes/admin/settings/settings.php:303
418
- #: includes/admin/settings/settings.php:341
419
  #: includes/admin/settings/social.php:156
420
  #: includes/admin/templates/dashboard/dashboard-widget-social.php:22
421
  #: includes/admin/templates/metabox/horizontal-tab-nav.php:15
@@ -426,9 +426,9 @@ msgstr ""
426
  msgid "Social"
427
  msgstr ""
428
 
429
- #: includes/admin/settings/settings.php:304
430
- #: includes/admin/settings/settings.php:342
431
- #: includes/admin/settings/sitemap.php:328
432
  #: includes/admin/templates/dashboard/dashboard-top.php:111
433
  #: includes/admin/templates/dashboard/dashboard-widget-sitemap.php:21
434
  #: includes/admin/templates/sitemap/sitemap-settings.php:17
@@ -437,44 +437,44 @@ msgstr ""
437
  msgid "Sitemap"
438
  msgstr ""
439
 
440
- #: includes/admin/settings/settings.php:326
441
- #: includes/admin/settings/sitemap.php:438
442
  msgid "All pages"
443
  msgstr ""
444
 
445
- #: includes/admin/settings/settings.php:327
446
- #: includes/admin/settings/sitemap.php:439
447
  msgid "Home page"
448
  msgstr ""
449
 
450
- #: includes/admin/settings/settings.php:454
451
  #: includes/admin/templates/settings/settings-section-import-export.php:46
452
  msgid "Yoast SEO"
453
  msgstr ""
454
 
455
- #: includes/admin/settings/settings.php:460
456
  #: includes/admin/templates/settings/settings-section-import-export.php:58
457
  #: includes/core/class-wds-controller-assets.php:331
458
  msgid "All In One SEO"
459
  msgstr ""
460
 
461
- #: includes/admin/settings/settings.php:478
462
  msgid "auto-import"
463
  msgstr ""
464
 
465
- #: includes/admin/settings/settings.php:481
466
  msgid ""
467
  "We've detected you have %1$s settings. Do you want to %2$s your "
468
  "configuration into SmartCrawl?"
469
  msgstr ""
470
 
471
- #: includes/admin/settings/settings.php:531
472
  msgid ""
473
  "We have spent countless hours developing this free plugin for you, and we "
474
  "would really appreciate it if you dropped us a quick rating."
475
  msgstr ""
476
 
477
- #: includes/admin/settings/settings.php:533
478
  msgid "Rate SmartCrawl"
479
  msgstr ""
480
 
@@ -490,7 +490,7 @@ msgstr ""
490
  msgid "SmartCrawl Wizard: Sitemap"
491
  msgstr ""
492
 
493
- #: includes/admin/settings/sitemap.php:409
494
  msgid "Crawl started successfully"
495
  msgstr ""
496
 
@@ -2146,6 +2146,7 @@ msgstr ""
2146
 
2147
  #: includes/admin/templates/dismissable-notice.php:20
2148
  #: includes/admin/templates/floating-message.php:11
 
2149
  msgid "Dismiss"
2150
  msgstr ""
2151
 
@@ -5261,6 +5262,31 @@ msgstr ""
5261
  msgid "The missing items have been added to your sitemap as extra URLs."
5262
  msgstr ""
5263
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5264
  #: includes/tools/seomoz/class-wds-moz-dashboard-widget.php:61
5265
  msgid "Moz - SmartCrawl"
5266
  msgstr ""
2
  # This file is distributed under the same license as the SmartCrawl package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: SmartCrawl 2.5.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpmu-dev-seo\n"
7
+ "POT-Creation-Date: 2020-02-26 18:01:04+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: grunt-wp-i18n1.0.2\n"
15
 
16
  #: includes/admin/admin.php:117 includes/admin/settings/settings.php:253
17
+ #: includes/admin/settings/settings.php:308
18
  #: includes/admin/templates/advanced-tools/advanced-tools-settings.php:107
19
  #: includes/admin/templates/onpage/onpage-settings.php:236
20
  #: includes/admin/templates/onpage/onpage-sidenav.php:23
109
  msgstr ""
110
 
111
  #: includes/admin/settings/autolinks.php:278
112
+ #: includes/admin/settings/settings.php:307
113
+ #: includes/admin/settings/settings.php:345
114
  #: includes/admin/templates/advanced-tools/advanced-tools-settings.php:13
115
  #: includes/admin/templates/dashboard/dashboard-widget-advanced-tools.php:31
116
  #: includes/admin/templates/sitemap/underscore-redirect-dialog-body.php:29
131
  msgstr ""
132
 
133
  #: includes/admin/settings/checkup.php:125
134
+ #: includes/admin/settings/settings.php:303
135
+ #: includes/admin/settings/settings.php:341
136
  #: includes/admin/templates/checkup/checkup-settings.php:13
137
  #: includes/admin/templates/dashboard/dashboard-widget-seo-checkup.php:31
138
  #: includes/core/class-wds-settings.php:277
190
  msgstr ""
191
 
192
  #: includes/admin/settings/onpage.php:273
193
+ #: includes/admin/settings/settings.php:304
194
+ #: includes/admin/settings/settings.php:342
195
  #: includes/admin/templates/onpage/onpage-settings.php:11
196
  msgid "Title & Meta"
197
  msgstr ""
223
 
224
  #: includes/admin/settings/onpage.php:543
225
  #: includes/admin/settings/sitemap.php:253
226
+ #: includes/admin/settings/sitemap.php:441
227
  msgid "Yes"
228
  msgstr ""
229
 
230
  #: includes/admin/settings/onpage.php:547
231
+ #: includes/admin/settings/sitemap.php:437
232
  msgid "Google"
233
  msgstr ""
234
 
235
  #: includes/admin/settings/onpage.php:548
236
+ #: includes/admin/settings/sitemap.php:438
237
  msgid "Bing"
238
  msgstr ""
239
 
414
  msgid "SmartCrawl Wizard: Settings"
415
  msgstr ""
416
 
417
+ #: includes/admin/settings/settings.php:305
418
+ #: includes/admin/settings/settings.php:343
419
  #: includes/admin/settings/social.php:156
420
  #: includes/admin/templates/dashboard/dashboard-widget-social.php:22
421
  #: includes/admin/templates/metabox/horizontal-tab-nav.php:15
426
  msgid "Social"
427
  msgstr ""
428
 
429
+ #: includes/admin/settings/settings.php:306
430
+ #: includes/admin/settings/settings.php:344
431
+ #: includes/admin/settings/sitemap.php:329
432
  #: includes/admin/templates/dashboard/dashboard-top.php:111
433
  #: includes/admin/templates/dashboard/dashboard-widget-sitemap.php:21
434
  #: includes/admin/templates/sitemap/sitemap-settings.php:17
437
  msgid "Sitemap"
438
  msgstr ""
439
 
440
+ #: includes/admin/settings/settings.php:328
441
+ #: includes/admin/settings/sitemap.php:444
442
  msgid "All pages"
443
  msgstr ""
444
 
445
+ #: includes/admin/settings/settings.php:329
446
+ #: includes/admin/settings/sitemap.php:445
447
  msgid "Home page"
448
  msgstr ""
449
 
450
+ #: includes/admin/settings/settings.php:456
451
  #: includes/admin/templates/settings/settings-section-import-export.php:46
452
  msgid "Yoast SEO"
453
  msgstr ""
454
 
455
+ #: includes/admin/settings/settings.php:462
456
  #: includes/admin/templates/settings/settings-section-import-export.php:58
457
  #: includes/core/class-wds-controller-assets.php:331
458
  msgid "All In One SEO"
459
  msgstr ""
460
 
461
+ #: includes/admin/settings/settings.php:480
462
  msgid "auto-import"
463
  msgstr ""
464
 
465
+ #: includes/admin/settings/settings.php:483
466
  msgid ""
467
  "We've detected you have %1$s settings. Do you want to %2$s your "
468
  "configuration into SmartCrawl?"
469
  msgstr ""
470
 
471
+ #: includes/admin/settings/settings.php:533
472
  msgid ""
473
  "We have spent countless hours developing this free plugin for you, and we "
474
  "would really appreciate it if you dropped us a quick rating."
475
  msgstr ""
476
 
477
+ #: includes/admin/settings/settings.php:535
478
  msgid "Rate SmartCrawl"
479
  msgstr ""
480
 
490
  msgid "SmartCrawl Wizard: Sitemap"
491
  msgstr ""
492
 
493
+ #: includes/admin/settings/sitemap.php:415
494
  msgid "Crawl started successfully"
495
  msgstr ""
496
 
2146
 
2147
  #: includes/admin/templates/dismissable-notice.php:20
2148
  #: includes/admin/templates/floating-message.php:11
2149
+ #: includes/recommended-plugins-notice/notice.php:491
2150
  msgid "Dismiss"
2151
  msgstr ""
2152
 
5262
  msgid "The missing items have been added to your sitemap as extra URLs."
5263
  msgstr ""
5264
 
5265
+ #: includes/recommended-plugins-notice/notice.php:194
5266
+ msgid "Enjoying %s? Try out a few of our other popular free plugins..."
5267
+ msgstr ""
5268
+
5269
+ #: includes/recommended-plugins-notice/notice.php:286
5270
+ msgid "Resize, optimize and compress all of your images to the max."
5271
+ msgstr ""
5272
+
5273
+ #: includes/recommended-plugins-notice/notice.php:294
5274
+ msgid "Add powerful caching and optimize your assets."
5275
+ msgstr ""
5276
+
5277
+ #: includes/recommended-plugins-notice/notice.php:302
5278
+ #: includes/recommended-plugins-notice/notice.php:318
5279
+ msgid "Create dynamic forms easily and quickly with our form builder."
5280
+ msgstr ""
5281
+
5282
+ #: includes/recommended-plugins-notice/notice.php:310
5283
+ msgid "Configure your markup for optimal page and social ranking."
5284
+ msgstr ""
5285
+
5286
+ #: includes/recommended-plugins-notice/notice.php:326
5287
+ msgid "Generate leads with pop-ups, slide-ins and email opt-ins."
5288
+ msgstr ""
5289
+
5290
  #: includes/tools/seomoz/class-wds-moz-dashboard-widget.php:61
5291
  msgid "Moz - SmartCrawl"
5292
  msgstr ""
readme.txt CHANGED
@@ -7,7 +7,7 @@ Author URI: https://premium.wpmudev.org/
7
  Author: WPMU DEV
8
  Requires at least: 4.6
9
  Tested up to: 5.3.2
10
- Stable tag: 2.5.0
11
 
12
  SmartCrawl SEO checker, content analysis and search optimizer to rank higher and get discovered in search engines.
13
 
@@ -128,6 +128,10 @@ SmartCrawl works with any normal WP content and page builders shouldn’t be an
128
 
129
  == Changelog ==
130
 
 
 
 
 
131
  = 2.5.0 =
132
 
133
  * New: SEO checkup report revamped to have better recommendations and action buttons
7
  Author: WPMU DEV
8
  Requires at least: 4.6
9
  Tested up to: 5.3.2
10
+ Stable tag: 2.5.1
11
 
12
  SmartCrawl SEO checker, content analysis and search optimizer to rank higher and get discovered in search engines.
13
 
128
 
129
  == Changelog ==
130
 
131
+ = 2.5.1 =
132
+
133
+ * New: Minor code improvements
134
+
135
  = 2.5.0 =
136
 
137
  * New: SEO checkup report revamped to have better recommendations and action buttons
wpmu-dev-seo.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: SmartCrawl
4
  * Plugin URI: http://premium.wpmudev.org/project/wpmu-dev-seo/
5
  * Description: Every SEO option that a site requires, in one easy bundle.
6
- * Version: 2.5.0
7
  * Network: true
8
  * Text Domain: wds
9
  * Author: WPMU DEV
@@ -29,7 +29,7 @@
29
  */
30
 
31
  if ( ! defined( 'SMARTCRAWL_VERSION' ) ) {
32
- define( 'SMARTCRAWL_VERSION', '2.5.0' );
33
  }
34
 
35
  if ( ! defined( 'SMARTCRAWL_SUI_VERSION' ) ) {
3
  * Plugin Name: SmartCrawl
4
  * Plugin URI: http://premium.wpmudev.org/project/wpmu-dev-seo/
5
  * Description: Every SEO option that a site requires, in one easy bundle.
6
+ * Version: 2.5.1
7
  * Network: true
8
  * Text Domain: wds
9
  * Author: WPMU DEV
29
  */
30
 
31
  if ( ! defined( 'SMARTCRAWL_VERSION' ) ) {
32
+ define( 'SMARTCRAWL_VERSION', '2.5.1' );
33
  }
34
 
35
  if ( ! defined( 'SMARTCRAWL_SUI_VERSION' ) ) {