SEO SQUIRRLY™ - Version 12.1.13

Version Description

  • 10/26/2022 =
  • Update - Added compatibility with WP 6.1
  • Fixed - Fixed the 404 redirect when no default URL is given
  • Fixed - Update the RoleManager.php to load only on plugin activation to allow the posibility to change the capabilities in user roles
  • Fixed - Correct the frontend buffer to work with other plugins better
Download this release

Release Info

Developer cifi
Plugin Icon 128x128 SEO SQUIRRLY™
Version 12.1.13
Comparing to
See all releases

Code changes from version 12.1.12 to 12.1.13

models/services/Canonical.php CHANGED
@@ -4,7 +4,7 @@ class SQ_Models_Services_Canonical extends SQ_Models_Abstract_Seo
4
  {
5
 
6
 
7
- public function __construct()
8
  {
9
  parent::__construct();
10
 
@@ -21,7 +21,7 @@ class SQ_Models_Services_Canonical extends SQ_Models_Abstract_Seo
21
  }
22
  }
23
 
24
- public function generateCanonical($canonical = '')
25
  {
26
  if (SQ_Classes_Helpers_Tools::getOption('sq_auto_canonical') && isset($this->_post->sq->canonical) && $this->_post->sq->canonical <> '') {
27
  $canonical = esc_url($this->_post->sq->canonical);
@@ -29,10 +29,10 @@ class SQ_Models_Services_Canonical extends SQ_Models_Abstract_Seo
29
  $canonical = urldecode(esc_url($this->_post->url));
30
  }
31
 
32
- return $canonical;
33
  }
34
 
35
- public function packCanonical($canonical = '')
36
  {
37
  if ($canonical <> '') {
38
  return sprintf("<link rel=\"canonical\" href=\"%s\" />", $canonical);
4
  {
5
 
6
 
7
+ public function __construct()
8
  {
9
  parent::__construct();
10
 
21
  }
22
  }
23
 
24
+ public function generateCanonical($canonical = '')
25
  {
26
  if (SQ_Classes_Helpers_Tools::getOption('sq_auto_canonical') && isset($this->_post->sq->canonical) && $this->_post->sq->canonical <> '') {
27
  $canonical = esc_url($this->_post->sq->canonical);
29
  $canonical = urldecode(esc_url($this->_post->url));
30
  }
31
 
32
+ return apply_filters('sq_canonical_url', $canonical);
33
  }
34
 
35
+ public function packCanonical($canonical = '')
36
  {
37
  if ($canonical <> '') {
38
  return sprintf("<link rel=\"canonical\" href=\"%s\" />", $canonical);
models/services/OpenGraph.php CHANGED
@@ -38,7 +38,7 @@ class SQ_Models_Services_OpenGraph extends SQ_Models_Abstract_Seo
38
  {
39
  if (SQ_Classes_Helpers_Tools::getOption('sq_auto_facebook')) {
40
  if ($this->_post->url <> '') {
41
- $og['og:url'] = urldecode(esc_url($this->_post->url));
42
  }
43
 
44
  if ($this->_post->sq->og_title <> '') {
38
  {
39
  if (SQ_Classes_Helpers_Tools::getOption('sq_auto_facebook')) {
40
  if ($this->_post->url <> '') {
41
+ $og['og:url'] = apply_filters('sq_canonical_url', urldecode(esc_url($this->_post->url)));
42
  }
43
 
44
  if ($this->_post->sq->og_title <> '') {
models/services/TwitterCard.php CHANGED
@@ -3,7 +3,7 @@
3
  class SQ_Models_Services_TwitterCard extends SQ_Models_Abstract_Seo
4
  {
5
 
6
- public function __construct()
7
  {
8
  parent::__construct();
9
 
@@ -22,11 +22,11 @@ class SQ_Models_Services_TwitterCard extends SQ_Models_Abstract_Seo
22
 
23
  }
24
 
25
- public function generateTwitterCard($tw = array())
26
  {
27
  if (SQ_Classes_Helpers_Tools::getOption('sq_auto_twitter')) {
28
  if ($this->_post->url <> '') {
29
- $tw['twitter:url'] = urldecode(esc_url($this->_post->url));
30
  }
31
 
32
  if ($this->_post->sq->tw_title <> '') {
@@ -75,7 +75,7 @@ class SQ_Models_Services_TwitterCard extends SQ_Models_Abstract_Seo
75
  * @param array $tw
76
  * @return array
77
  */
78
- public function generateTwitterCardAuthor($tw = array())
79
  {
80
  $socials = SQ_Classes_Helpers_Tools::getOption('socials');
81
  $account = isset($socials['twitter']) ? $socials['twitter'] : '';
@@ -95,7 +95,7 @@ class SQ_Models_Services_TwitterCard extends SQ_Models_Abstract_Seo
95
  return $tw;
96
  }
97
 
98
- protected function _setMedia(&$tw)
99
  {
100
  $images = $this->getPostImages();
101
  if (!empty($images)) {
@@ -106,7 +106,7 @@ class SQ_Models_Services_TwitterCard extends SQ_Models_Abstract_Seo
106
  }
107
  }
108
 
109
- public function packTwitterCard($tw = array())
110
  {
111
  if (!empty($tw)) {
112
  foreach ($tw as $key => &$value) {
3
  class SQ_Models_Services_TwitterCard extends SQ_Models_Abstract_Seo
4
  {
5
 
6
+ public function __construct()
7
  {
8
  parent::__construct();
9
 
22
 
23
  }
24
 
25
+ public function generateTwitterCard($tw = array())
26
  {
27
  if (SQ_Classes_Helpers_Tools::getOption('sq_auto_twitter')) {
28
  if ($this->_post->url <> '') {
29
+ $tw['twitter:url'] = apply_filters('sq_canonical_url', urldecode(esc_url($this->_post->url)));
30
  }
31
 
32
  if ($this->_post->sq->tw_title <> '') {
75
  * @param array $tw
76
  * @return array
77
  */
78
+ public function generateTwitterCardAuthor($tw = array())
79
  {
80
  $socials = SQ_Classes_Helpers_Tools::getOption('socials');
81
  $account = isset($socials['twitter']) ? $socials['twitter'] : '';
95
  return $tw;
96
  }
97
 
98
+ protected function _setMedia(&$tw)
99
  {
100
  $images = $this->getPostImages();
101
  if (!empty($images)) {
106
  }
107
  }
108
 
109
+ public function packTwitterCard($tw = array())
110
  {
111
  if (!empty($tw)) {
112
  foreach ($tw as $key => &$value) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://plugin.squirrly.co/squirrly-seo-pricing/
4
  Tags: SEO, SEO Plugin, XML sitemap, WooCommerce SEO, Search Engine, Open Graph, Video Sitemap, Google News Sitemap, Rich Snippets, Robotx.txt, SEO Automation, Local SEO, SEO Content analysis, SEO Content, SEO Optimization, WordPress SEO, Yoast, Yoast Compatible, Yoast Import, SEO Redirection, Redirection, SEO Sitemap, SEO Caching, Meta Title, Meta Description, Performance, SEO Audit, SEO Keyword Research, SEO Rank Math import, Google Search Console, Schema
5
  Requires at least: 4.3
6
  Tested up to: 6.1
7
- Stable tag: 12.1.12
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
 
@@ -669,6 +669,12 @@ Type a keyword to the right of the screen and start using Squirrly Seo. Enjoy!
669
  7. Squirrly SEO - SEO Briefcase
670
 
671
  == Changelog ==
 
 
 
 
 
 
672
  = 12.1.12 - 09/30/2022 =
673
  * Update - Added the option to send any post type from Automation to Google News sitemap
674
  * Update - Added the Semrush Ranking score in SEO Audit
@@ -684,7 +690,6 @@ Type a keyword to the right of the screen and start using Squirrly Seo. Enjoy!
684
  * Fixed - Increase security and remove unused functions from older version of Squirrly SEO
685
  * Fixed - Don't show tasks in Assistant for inactive features
686
  * Fixed - Focus Pages > SEO image to check only the filename and not the image path
687
- * Fixed - Correct the frontend buffer to work with other plugins better
688
  * Fixed - UnitPriceSpecification in JsonLD for Woocommerce products
689
  * Fixed - Sitemap to not include relative redirected URLs that are not valid
690
  * Fixed - Ranking to not show duplicare URLs
4
  Tags: SEO, SEO Plugin, XML sitemap, WooCommerce SEO, Search Engine, Open Graph, Video Sitemap, Google News Sitemap, Rich Snippets, Robotx.txt, SEO Automation, Local SEO, SEO Content analysis, SEO Content, SEO Optimization, WordPress SEO, Yoast, Yoast Compatible, Yoast Import, SEO Redirection, Redirection, SEO Sitemap, SEO Caching, Meta Title, Meta Description, Performance, SEO Audit, SEO Keyword Research, SEO Rank Math import, Google Search Console, Schema
5
  Requires at least: 4.3
6
  Tested up to: 6.1
7
+ Stable tag: 12.1.13
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
 
669
  7. Squirrly SEO - SEO Briefcase
670
 
671
  == Changelog ==
672
+ = 12.1.13 - 10/26/2022 =
673
+ * Update - Added compatibility with WP 6.1
674
+ * Fixed - Fixed the 404 redirect when no default URL is given
675
+ * Fixed - Update the RoleManager.php to load only on plugin activation to allow the posibility to change the capabilities in user roles
676
+ * Fixed - Correct the frontend buffer to work with other plugins better
677
+
678
  = 12.1.12 - 09/30/2022 =
679
  * Update - Added the option to send any post type from Automation to Google News sitemap
680
  * Update - Added the Semrush Ranking score in SEO Audit
690
  * Fixed - Increase security and remove unused functions from older version of Squirrly SEO
691
  * Fixed - Don't show tasks in Assistant for inactive features
692
  * Fixed - Focus Pages > SEO image to check only the filename and not the image path
 
693
  * Fixed - UnitPriceSpecification in JsonLD for Woocommerce products
694
  * Fixed - Sitemap to not include relative redirected URLs that are not valid
695
  * Fixed - Ranking to not show duplicare URLs
squirrly.php CHANGED
@@ -8,7 +8,7 @@
8
  * Description: A.I.-based Private SEO Consultant. In a Plugin. Powered by Machine Learning and Cloud Services. Over 300 functionalities for SEO available when you need them.
9
  * Author: Squirrly
10
  * Author URI: https://plugin.squirrly.co
11
- * Version: 12.1.12
12
  * License: GPLv2 or later
13
  * License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
14
  * Text Domain: squirrly-seo
@@ -17,9 +17,9 @@
17
 
18
  if (!defined('SQ_VERSION')) {
19
  /* SET THE CURRENT VERSION ABOVE AND BELOW */
20
- define('SQ_VERSION', '12.1.12');
21
  //The last stable version
22
- define('SQ_STABLE_VERSION', '12.1.10');
23
  // Call config files
24
  try {
25
  include_once dirname(__FILE__) . '/config/config.php';
@@ -49,5 +49,4 @@ if (!defined('SQ_VERSION')) {
49
 
50
  } catch (Exception $e) {
51
  }
52
- }
53
-
8
  * Description: A.I.-based Private SEO Consultant. In a Plugin. Powered by Machine Learning and Cloud Services. Over 300 functionalities for SEO available when you need them.
9
  * Author: Squirrly
10
  * Author URI: https://plugin.squirrly.co
11
+ * Version: 12.1.13
12
  * License: GPLv2 or later
13
  * License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
14
  * Text Domain: squirrly-seo
17
 
18
  if (!defined('SQ_VERSION')) {
19
  /* SET THE CURRENT VERSION ABOVE AND BELOW */
20
+ define('SQ_VERSION', '12.1.13');
21
  //The last stable version
22
+ define('SQ_STABLE_VERSION', '12.1.12');
23
  // Call config files
24
  try {
25
  include_once dirname(__FILE__) . '/config/config.php';
49
 
50
  } catch (Exception $e) {
51
  }
52
+ }