SEOPress - Version 4.3.0.1

Version Description

  • FIX Fatal error
Download this release

Release Info

Developer rainbowgeek
Plugin Icon 128x128 SEOPress
Version 4.3.0.1
Comparing to
See all releases

Code changes from version 4.3 to 4.3.0.1

inc/admin/admin-metaboxes-content-analysis-form.php CHANGED
@@ -67,5 +67,7 @@ if (is_plugin_active('wp-seopress-pro/seopress-pro.php')) {
67
  </div>";
68
  }
69
 
70
- $analyzes = seopress_get_service('GetContentAnalysis')->getAnalyzes($post);
71
- seopress_get_service('RenderContentAnalysis')->render($analyzes, $seopress_analysis_data);
 
 
67
  </div>";
68
  }
69
 
70
+ if (function_exists('seopress_get_service')) {
71
+ $analyzes = seopress_get_service('GetContentAnalysis')->getAnalyzes($post);
72
+ seopress_get_service('RenderContentAnalysis')->render($analyzes, $seopress_analysis_data);
73
+ }
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: SEO, XML sitemap, meta title, open graph, content analysis, knowledge grap
6
  Requires at least: 4.7+
7
  Tested up to: 5.6
8
  Requires PHP: 5.6
9
- Stable tag: 4.3.0
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -100,7 +100,6 @@ SEOPress is a powerful WordPress SEO plugin to optimize your SEO, boost your tra
100
  <li><strong>Dublin Core</strong> meta tags</li>
101
  <li><strong>Custom Breadcrumbs</strong> for single post types / term taxonomy</li>
102
  <li><strong>Google Page Speed Insights</strong> to analyse your site performances</li>
103
- <li><strong>Google Analytics Events</strong>: track external links, downloads (PDF, DOCX...), affiliate links...</li>
104
  <li><strong>Google Enhanced Ecommerce for WooCommerce</strong>: measure purchases, additions to and removals from shopping carts</li>
105
  <li>Edit your <strong>robots.txt</strong> file from the admin (multisite / multidomain ready)</li>
106
  <li><strong>Google News Sitemap</strong> to get your posts on Google News</li>
@@ -320,7 +319,9 @@ You're theme is probably using a deprecated function to handle the title. <a hre
320
  8. Installation Wizard
321
  9. Schemas metabox
322
 
323
- == Changelog ==
 
 
324
  = 4.3 (14/01/2021) =
325
  * NEW PHP 8 compatibility
326
  * NEW "Disable notifications on slug changes or post deletions" option from SEO, PRO, 404/301 tab (PRO)
6
  Requires at least: 4.7+
7
  Tested up to: 5.6
8
  Requires PHP: 5.6
9
+ Stable tag: 4.3.0.1
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
100
  <li><strong>Dublin Core</strong> meta tags</li>
101
  <li><strong>Custom Breadcrumbs</strong> for single post types / term taxonomy</li>
102
  <li><strong>Google Page Speed Insights</strong> to analyse your site performances</li>
 
103
  <li><strong>Google Enhanced Ecommerce for WooCommerce</strong>: measure purchases, additions to and removals from shopping carts</li>
104
  <li>Edit your <strong>robots.txt</strong> file from the admin (multisite / multidomain ready)</li>
105
  <li><strong>Google News Sitemap</strong> to get your posts on Google News</li>
319
  8. Installation Wizard
320
  9. Schemas metabox
321
 
322
+ == Changelog ==
323
+ = 4.3.0.1 =
324
+ * FIX Fatal error
325
  = 4.3 (14/01/2021) =
326
  * NEW PHP 8 compatibility
327
  * NEW "Disable notifications on slug changes or post deletions" option from SEO, PRO, 404/301 tab (PRO)
seopress.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: SEOPress
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
  Author: SEOPress
7
- Version: 4.3.0
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
10
  Text Domain: wp-seopress
@@ -55,7 +55,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
55
  ///////////////////////////////////////////////////////////////////////////////////////////////////
56
  //Define
57
  ///////////////////////////////////////////////////////////////////////////////////////////////////
58
- define('SEOPRESS_VERSION', '4.3.0');
59
  define('SEOPRESS_AUTHOR', 'Benjamin Denis');
60
  define('SEOPRESS_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
61
  define('SEOPRESS_TEMPLATE_DIR', SEOPRESS_PLUGIN_DIR_PATH . 'templates');
@@ -773,6 +773,10 @@ function seopress_get_toggle_advanced_option() {
773
  * @deprecated 4.3.0
774
  */
775
  function seopress_xml_sitemap_general_enable_option() {
 
 
 
 
776
  return seopress_get_service('SitemapOption')->isEnabled();
777
  }
778
 
@@ -780,6 +784,10 @@ function seopress_xml_sitemap_general_enable_option() {
780
  * @deprecated 4.3.0
781
  */
782
  function seopress_xml_sitemap_post_types_list_option() {
 
 
 
 
783
  return seopress_get_service('SitemapOption')->getPostTypesList();
784
  }
785
 
@@ -787,6 +795,10 @@ function seopress_xml_sitemap_post_types_list_option() {
787
  * @deprecated 4.3.0
788
  */
789
  function seopress_xml_sitemap_taxonomies_list_option() {
 
 
 
 
790
  return seopress_get_service('SitemapOption')->getTaxonomiesList();
791
  }
792
 
@@ -794,6 +806,10 @@ function seopress_xml_sitemap_taxonomies_list_option() {
794
  * @deprecated 4.3.0
795
  */
796
  function seopress_xml_sitemap_author_enable_option() {
 
 
 
 
797
  return seopress_get_service('SitemapOption')->authorIsEnable();
798
  }
799
 
@@ -801,12 +817,20 @@ function seopress_xml_sitemap_author_enable_option() {
801
  * @deprecated 4.3.0
802
  */
803
  function seopress_xml_sitemap_img_enable_option() {
 
 
 
 
804
  return seopress_get_service('SitemapOption')->imageIsEnable();
805
  }
806
 
807
  //Rewrite Rules for XML Sitemap
808
  if ('1' == seopress_xml_sitemap_general_enable_option() && '1' == seopress_get_toggle_option('xml-sitemap')) {
809
  function seopress_sitemaps_headers() {
 
 
 
 
810
  seopress_get_service('SitemapHeaders')->printHeaders();
811
  }
812
 
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
  Author: SEOPress
7
+ Version: 4.3.0.1
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
10
  Text Domain: wp-seopress
55
  ///////////////////////////////////////////////////////////////////////////////////////////////////
56
  //Define
57
  ///////////////////////////////////////////////////////////////////////////////////////////////////
58
+ define('SEOPRESS_VERSION', '4.3.0.1');
59
  define('SEOPRESS_AUTHOR', 'Benjamin Denis');
60
  define('SEOPRESS_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
61
  define('SEOPRESS_TEMPLATE_DIR', SEOPRESS_PLUGIN_DIR_PATH . 'templates');
773
  * @deprecated 4.3.0
774
  */
775
  function seopress_xml_sitemap_general_enable_option() {
776
+ if ( ! function_exists('seopress_get_service')) {
777
+ return '1';
778
+ }
779
+
780
  return seopress_get_service('SitemapOption')->isEnabled();
781
  }
782
 
784
  * @deprecated 4.3.0
785
  */
786
  function seopress_xml_sitemap_post_types_list_option() {
787
+ if ( ! function_exists('seopress_get_service')) {
788
+ return '';
789
+ }
790
+
791
  return seopress_get_service('SitemapOption')->getPostTypesList();
792
  }
793
 
795
  * @deprecated 4.3.0
796
  */
797
  function seopress_xml_sitemap_taxonomies_list_option() {
798
+ if ( ! function_exists('seopress_get_service')) {
799
+ return '';
800
+ }
801
+
802
  return seopress_get_service('SitemapOption')->getTaxonomiesList();
803
  }
804
 
806
  * @deprecated 4.3.0
807
  */
808
  function seopress_xml_sitemap_author_enable_option() {
809
+ if ( ! function_exists('seopress_get_service')) {
810
+ return '';
811
+ }
812
+
813
  return seopress_get_service('SitemapOption')->authorIsEnable();
814
  }
815
 
817
  * @deprecated 4.3.0
818
  */
819
  function seopress_xml_sitemap_img_enable_option() {
820
+ if ( ! function_exists('seopress_get_service')) {
821
+ return '';
822
+ }
823
+
824
  return seopress_get_service('SitemapOption')->imageIsEnable();
825
  }
826
 
827
  //Rewrite Rules for XML Sitemap
828
  if ('1' == seopress_xml_sitemap_general_enable_option() && '1' == seopress_get_toggle_option('xml-sitemap')) {
829
  function seopress_sitemaps_headers() {
830
+ if(!function_exists('seopress_get_service')){
831
+ return;
832
+ }
833
+
834
  seopress_get_service('SitemapHeaders')->printHeaders();
835
  }
836
 
src/Actions/Sitemap/Render.php CHANGED
@@ -45,6 +45,9 @@ class Render implements ExecuteHooksFrontend {
45
  if (function_exists('seopress_xml_sitemap_post_types_list_option')
46
  && '' != seopress_xml_sitemap_post_types_list_option()
47
  && array_key_exists(get_query_var('seopress_cpt'), seopress_xml_sitemap_post_types_list_option())) {
 
 
 
48
  /*
49
  * @since 4.3.0
50
  */
45
  if (function_exists('seopress_xml_sitemap_post_types_list_option')
46
  && '' != seopress_xml_sitemap_post_types_list_option()
47
  && array_key_exists(get_query_var('seopress_cpt'), seopress_xml_sitemap_post_types_list_option())) {
48
+ if ( ! function_exists('seopress_get_service')) {
49
+ return;
50
+ }
51
  /*
52
  * @since 4.3.0
53
  */
src/Services/Sitemap/Render/Single.php CHANGED
@@ -39,6 +39,10 @@ class Single {
39
  * @return void
40
  */
41
  public function render() {
 
 
 
 
42
  seopress_get_service('SitemapHeaders')->printHeaders();
43
 
44
  //Remove primary category
39
  * @return void
40
  */
41
  public function render() {
42
+ if ( ! function_exists('seopress_get_service')) {
43
+ return;
44
+ }
45
+
46
  seopress_get_service('SitemapHeaders')->printHeaders();
47
 
48
  //Remove primary category
templates/sitemap/single.php CHANGED
@@ -37,6 +37,9 @@ $urlset = '<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch
37
  echo apply_filters('seopress_sitemaps_urlset', $urlset);
38
 
39
  if (true == get_post_type_archive_link($path) && 0 == $offset) {
 
 
 
40
  if ('1' != seopress_get_service('TitleOption')->getTitlesCptNoIndexByPath($path)) {
41
  $sitemap_url = '';
42
  // array with all the information needed for a sitemap url
37
  echo apply_filters('seopress_sitemaps_urlset', $urlset);
38
 
39
  if (true == get_post_type_archive_link($path) && 0 == $offset) {
40
+ if ( ! function_exists('seopress_get_service')) {
41
+ return;
42
+ }
43
  if ('1' != seopress_get_service('TitleOption')->getTitlesCptNoIndexByPath($path)) {
44
  $sitemap_url = '';
45
  // array with all the information needed for a sitemap url