SmartCrawl SEO - Version 2.14.2

Version Description

( 2021-09-28 ) =

  • Fix: Special characters not handled properly in news sitemap
Download this release

Release Info

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

Code changes from version 2.14.1 to 2.14.2

changelog.txt CHANGED
@@ -2,6 +2,10 @@ Plugin Name: SmartCrawl SEO
2
 
3
  Change Log:
4
  ----------------------------------------------------------------------
 
 
 
 
5
  2.14.1 - 2021-09-23
6
  ----------------------------------------------------------------------
7
  Fix: Multisite Sitewide deprecation operation performed on every upgrade
2
 
3
  Change Log:
4
  ----------------------------------------------------------------------
5
+ 2.14.2 - 2021-09-28
6
+ ----------------------------------------------------------------------
7
+ Fix: Special characters not handled properly in news sitemap
8
+
9
  2.14.1 - 2021-09-23
10
  ----------------------------------------------------------------------
11
  Fix: Multisite Sitewide deprecation operation performed on every upgrade
constants.php CHANGED
@@ -2,8 +2,8 @@
2
  /**
3
  * Internal constants, not to be overridden
4
  */
5
- define( 'SMARTCRAWL_VERSION', '2.14.1' );
6
- define( 'SMARTCRAWL_BUILD', '1632492839564' );
7
  define( 'SMARTCRAWL_BUILD_TYPE', 'free' );
8
  define( 'SMARTCRAWL_SUI_VERSION', '2.10.9' );
9
  define( 'SMARTCRAWL_PACKAGE_ID', 167 );
2
  /**
3
  * Internal constants, not to be overridden
4
  */
5
+ define( 'SMARTCRAWL_VERSION', '2.14.2' );
6
+ define( 'SMARTCRAWL_BUILD', '1632847866534' );
7
  define( 'SMARTCRAWL_BUILD_TYPE', 'free' );
8
  define( 'SMARTCRAWL_SUI_VERSION', '2.10.9' );
9
  define( 'SMARTCRAWL_PACKAGE_ID', 167 );
includes/core/sitemaps/class-wds-controller-sitemap.php CHANGED
@@ -30,6 +30,8 @@ class Smartcrawl_Controller_Sitemap extends Smartcrawl_Base_Controller {
30
 
31
  add_action( 'update_option_wds_sitemap_options', array( $this, 'invalidate_sitemap_cache' ) );
32
 
 
 
33
  if ( Smartcrawl_Sitemap_Utils::auto_regeneration_enabled() ) {
34
  add_action( 'save_post', array( $this, 'handle_post_save' ) );
35
  add_action( 'delete_post', array( $this, 'handle_post_delete' ) );
@@ -38,6 +40,16 @@ class Smartcrawl_Controller_Sitemap extends Smartcrawl_Base_Controller {
38
  }
39
  }
40
 
 
 
 
 
 
 
 
 
 
 
41
  public function prime_cache_on_sitemap_settings_page_load() {
42
  global $plugin_page;
43
 
30
 
31
  add_action( 'update_option_wds_sitemap_options', array( $this, 'invalidate_sitemap_cache' ) );
32
 
33
+ add_action( 'wds_plugin_update', array( $this, 'invalidate_sitemap_cache_on_plugin_update' ) );
34
+
35
  if ( Smartcrawl_Sitemap_Utils::auto_regeneration_enabled() ) {
36
  add_action( 'save_post', array( $this, 'handle_post_save' ) );
37
  add_action( 'delete_post', array( $this, 'handle_post_delete' ) );
40
  }
41
  }
42
 
43
+ /**
44
+ * TODO: remove after enough time has passed after 2.14.2
45
+ */
46
+ public function invalidate_sitemap_cache_on_plugin_update() {
47
+ if ( SMARTCRAWL_VERSION === '2.14.2' ) {
48
+ // We added escaping in 2.14.2 so it's necessary to clear the cache after update
49
+ $this->invalidate_sitemap_cache();
50
+ }
51
+ }
52
+
53
  public function prime_cache_on_sitemap_settings_page_load() {
54
  global $plugin_page;
55
 
includes/core/sitemaps/general/class-wds-sitemap-item.php CHANGED
@@ -92,7 +92,7 @@ class Smartcrawl_Sitemap_Item extends Smartcrawl_Sitemap_Index_Item {
92
 
93
  $image_tag = '<image:image>';
94
  $image_tag .= '<image:loc>' . esc_url( $src ) . '</image:loc>';
95
- $image_tag .= '<image:title>' . ent2ncr( esc_attr( $text ) ) . '</image:title>';
96
  $image_tag .= "</image:image>";
97
 
98
  return $image_tag;
92
 
93
  $image_tag = '<image:image>';
94
  $image_tag .= '<image:loc>' . esc_url( $src ) . '</image:loc>';
95
+ $image_tag .= '<image:title>' . esc_xml( $text ) . '</image:title>';
96
  $image_tag .= "</image:image>";
97
 
98
  return $image_tag;
includes/core/sitemaps/news/class-wds-sitemap-news-item.php CHANGED
@@ -83,10 +83,10 @@ class Smartcrawl_Sitemap_News_Item {
83
  </news:news>
84
  </url>
85
  ",
86
- $this->get_location(),
87
- $this->get_publication(),
88
  Smartcrawl_Sitemap_Utils::format_timestamp( $this->get_publication_time() ),
89
- $this->get_title()
90
  );
91
  }
92
  }
83
  </news:news>
84
  </url>
85
  ",
86
+ esc_url( $this->get_location() ),
87
+ esc_xml( $this->get_publication() ),
88
  Smartcrawl_Sitemap_Utils::format_timestamp( $this->get_publication_time() ),
89
+ esc_xml( $this->get_title() )
90
  );
91
  }
92
  }
languages/wds.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the SmartCrawl Pro plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: SmartCrawl Pro 2.14.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/build\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2021-09-24T14:14:20+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
 
2
  # This file is distributed under the same license as the SmartCrawl Pro plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: SmartCrawl Pro 2.14.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/build\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2021-09-28T16:51:26+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
 
readme.txt CHANGED
@@ -7,7 +7,7 @@ Author URI: https://wpmudev.com/
7
  Author: WPMU DEV
8
  Requires at least: 5.2
9
  Tested up to: 5.8.1
10
- Stable tag: 2.14.1
11
 
12
  SEO checker, content analysis & SEO optimizer. Rank higher on search engines with 301 redirects, XML sitemaps & one-click setup.
13
 
@@ -136,6 +136,10 @@ SmartCrawl works with any normal WP content and page builders shouldn’t be an
136
 
137
  == Changelog ==
138
 
 
 
 
 
139
  = 2.14.1 ( 2021-09-23 ) =
140
 
141
  - Fix: Multisite Sitewide deprecation operation performed on every upgrade
7
  Author: WPMU DEV
8
  Requires at least: 5.2
9
  Tested up to: 5.8.1
10
+ Stable tag: 2.14.2
11
 
12
  SEO checker, content analysis & SEO optimizer. Rank higher on search engines with 301 redirects, XML sitemaps & one-click setup.
13
 
136
 
137
  == Changelog ==
138
 
139
+ = 2.14.2 ( 2021-09-28 ) =
140
+
141
+ - Fix: Special characters not handled properly in news sitemap
142
+
143
  = 2.14.1 ( 2021-09-23 ) =
144
 
145
  - Fix: Multisite Sitewide deprecation operation performed on every upgrade
wpmu-dev-seo.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: SmartCrawl
4
  * Plugin URI: https://wpmudev.com/project/smartcrawl-wordpress-seo/
5
  * Description: Every SEO option that a site requires, in one easy bundle.
6
- * Version: 2.14.1
7
  * Network: true
8
  * Text Domain: wds
9
  * Author: WPMU DEV
3
  * Plugin Name: SmartCrawl
4
  * Plugin URI: https://wpmudev.com/project/smartcrawl-wordpress-seo/
5
  * Description: Every SEO option that a site requires, in one easy bundle.
6
+ * Version: 2.14.2
7
  * Network: true
8
  * Text Domain: wds
9
  * Author: WPMU DEV