SEOPress - Version 4.4.0.1

Version Description

(12/02/2021) = * FIX Fatal errors

Download this release

Release Info

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

Code changes from version 4.4 to 4.4.0.1

inc/functions/options-advanced-admin.php CHANGED
@@ -377,21 +377,6 @@ if ('' != seopress_advanced_appearance_title_col_option()
377
  || '' != seopress_advanced_appearance_ps_col_option()
378
  || '' != seopress_advanced_appearance_insights_col_option()
379
  || '' != seopress_advanced_appearance_score_col_option()) {
380
- function seopress_titles_single_cpt_enable_option($cpt) {
381
- $current_cpt = null;
382
- $seopress_titles_single_enable_option = get_option('seopress_titles_option_name');
383
- if ( ! empty($seopress_titles_single_enable_option)) {
384
- foreach ($seopress_titles_single_enable_option as $key => $seopress_titles_single_enable_value) {
385
- $options[$key] = $seopress_titles_single_enable_value;
386
- if (isset($seopress_titles_single_enable_option['seopress_titles_single_titles'][$cpt]['enable'])) {
387
- $current_cpt = $seopress_titles_single_enable_option['seopress_titles_single_titles'][$cpt]['enable'];
388
- }
389
- }
390
- }
391
-
392
- return $current_cpt;
393
- }
394
-
395
  function seopress_add_columns() {
396
  if (isset(get_current_screen()->post_type)) {
397
  $key = get_current_screen()->post_type;
@@ -407,7 +392,6 @@ if ('' != seopress_advanced_appearance_title_col_option()
407
  }
408
  }
409
 
410
-
411
  //Sortable columns
412
  foreach (seopress_get_post_types() as $key => $value) {
413
  add_filter('manage_edit-' . $key . '_sortable_columns', 'seopress_admin_sortable_columns');
377
  || '' != seopress_advanced_appearance_ps_col_option()
378
  || '' != seopress_advanced_appearance_insights_col_option()
379
  || '' != seopress_advanced_appearance_score_col_option()) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
  function seopress_add_columns() {
381
  if (isset(get_current_screen()->post_type)) {
382
  $key = get_current_screen()->post_type;
392
  }
393
  }
394
 
 
395
  //Sortable columns
396
  foreach (seopress_get_post_types() as $key => $value) {
397
  add_filter('manage_edit-' . $key . '_sortable_columns', 'seopress_admin_sortable_columns');
inc/functions/options-titles-metas.php CHANGED
@@ -61,21 +61,7 @@ function seopress_titles_single_titles_option() {
61
  }
62
  }
63
 
64
- //Archive CPT Titles
65
- function seopress_titles_archive_titles_option() {
66
- global $post;
67
- $seopress_get_current_cpt = get_post_type($post);
68
 
69
- $seopress_titles_archive_titles_option = get_option('seopress_titles_option_name');
70
- if ( ! empty($seopress_titles_archive_titles_option)) {
71
- foreach ($seopress_titles_archive_titles_option as $key => $seopress_titles_archive_titles_value) {
72
- $options[$key] = $seopress_titles_archive_titles_value;
73
- }
74
- if (isset($seopress_titles_archive_titles_option['seopress_titles_archive_titles'][$seopress_get_current_cpt]['title'])) {
75
- return $seopress_titles_archive_titles_option['seopress_titles_archive_titles'][$seopress_get_current_cpt]['title'];
76
- }
77
- }
78
- }
79
 
80
  //Tax archives Titles
81
  function seopress_titles_tax_titles_option() {
61
  }
62
  }
63
 
 
 
 
 
64
 
 
 
 
 
 
 
 
 
 
 
65
 
66
  //Tax archives Titles
67
  function seopress_titles_tax_titles_option() {
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.4.0
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -320,6 +320,8 @@ You're theme is probably using a deprecated function to handle the title. <a hre
320
  9. Schemas metabox
321
 
322
  == Changelog ==
 
 
323
  = 4.4 (10/02/2021) =
324
  * NEW Complete code refactoring on Titles and metas feature 🎉
325
  * NEW Preview dynamic tags on post list columns 🎉
6
  Requires at least: 4.7+
7
  Tested up to: 5.6
8
  Requires PHP: 5.6
9
+ Stable tag: 4.4.0.1
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
320
  9. Schemas metabox
321
 
322
  == Changelog ==
323
+ = 4.4.0.1 (12/02/2021) =
324
+ * FIX Fatal errors
325
  = 4.4 (10/02/2021) =
326
  * NEW Complete code refactoring on Titles and metas feature 🎉
327
  * NEW Preview dynamic tags on post list columns 🎉
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.4.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.4.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');
@@ -75,6 +75,37 @@ if (file_exists(__DIR__ . '/vendor/autoload.php')) {
75
  ]);
76
  }
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  ///////////////////////////////////////////////////////////////////////////////////////////////////
79
  //SEOPRESS INIT = Admin + Core + API + Translation
80
  ///////////////////////////////////////////////////////////////////////////////////////////////////
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
  Author: SEOPress
7
+ Version: 4.4.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.4.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');
75
  ]);
76
  }
77
 
78
+ function seopress_titles_single_cpt_enable_option($cpt) {
79
+ $current_cpt = null;
80
+ $seopress_titles_single_enable_option = get_option('seopress_titles_option_name');
81
+ if ( ! empty($seopress_titles_single_enable_option)) {
82
+ foreach ($seopress_titles_single_enable_option as $key => $seopress_titles_single_enable_value) {
83
+ $options[$key] = $seopress_titles_single_enable_value;
84
+ if (isset($seopress_titles_single_enable_option['seopress_titles_single_titles'][$cpt]['enable'])) {
85
+ $current_cpt = $seopress_titles_single_enable_option['seopress_titles_single_titles'][$cpt]['enable'];
86
+ }
87
+ }
88
+ }
89
+
90
+ return $current_cpt;
91
+ }
92
+
93
+ //Archive CPT Titles
94
+ function seopress_titles_archive_titles_option() {
95
+ global $post;
96
+ $seopress_get_current_cpt = get_post_type($post);
97
+
98
+ $seopress_titles_archive_titles_option = get_option('seopress_titles_option_name');
99
+ if ( ! empty($seopress_titles_archive_titles_option)) {
100
+ foreach ($seopress_titles_archive_titles_option as $key => $seopress_titles_archive_titles_value) {
101
+ $options[$key] = $seopress_titles_archive_titles_value;
102
+ }
103
+ if (isset($seopress_titles_archive_titles_option['seopress_titles_archive_titles'][$seopress_get_current_cpt]['title'])) {
104
+ return $seopress_titles_archive_titles_option['seopress_titles_archive_titles'][$seopress_get_current_cpt]['title'];
105
+ }
106
+ }
107
+ }
108
+
109
  ///////////////////////////////////////////////////////////////////////////////////////////////////
110
  //SEOPRESS INIT = Admin + Core + API + Translation
111
  ///////////////////////////////////////////////////////////////////////////////////////////////////
src/Actions/Front/Metas/DescriptionMeta.php CHANGED
@@ -64,6 +64,10 @@ class DescriptionMeta implements ExecuteHooksFrontend {
64
  protected function getContent() {
65
  $context = seopress_get_service('ContextPage')->getContext();
66
 
 
 
 
 
67
  $variables = null;
68
  $variables = apply_filters('seopress_dyn_variables_fn', $variables);
69
 
64
  protected function getContent() {
65
  $context = seopress_get_service('ContextPage')->getContext();
66
 
67
+ if ( ! function_exists('seopress_titles_sep_option')) {
68
+ require_once SEOPRESS_PLUGIN_DIR_PATH . '/inc/functions/options-titles-metas.php';
69
+ }
70
+
71
  $variables = null;
72
  $variables = apply_filters('seopress_dyn_variables_fn', $variables);
73
 
src/Actions/Front/Metas/TitleMeta.php CHANGED
@@ -53,6 +53,10 @@ class TitleMeta implements ExecuteHooksFrontend {
53
  public function render() {
54
  $defaultHook = function_exists('seopress_get_service');
55
 
 
 
 
 
56
  if (apply_filters('seopress_old_pre_get_document_title', ! $defaultHook)) {
57
  return;
58
  }
53
  public function render() {
54
  $defaultHook = function_exists('seopress_get_service');
55
 
56
+ if ( ! function_exists('seopress_titles_sep_option')) {
57
+ require_once SEOPRESS_PLUGIN_DIR_PATH . '/inc/functions/options-titles-metas.php';
58
+ }
59
+
60
  if (apply_filters('seopress_old_pre_get_document_title', ! $defaultHook)) {
61
  return;
62
  }
vendor/composer/InstalledVersions.php CHANGED
@@ -29,7 +29,7 @@ private static $installed = array (
29
  'aliases' =>
30
  array (
31
  ),
32
- 'reference' => '081181e26a994092b89d217ddc7c60e862142f28',
33
  'name' => 'wp-seopress/wp-seopress',
34
  ),
35
  'versions' =>
@@ -41,7 +41,7 @@ private static $installed = array (
41
  'aliases' =>
42
  array (
43
  ),
44
- 'reference' => '081181e26a994092b89d217ddc7c60e862142f28',
45
  ),
46
  ),
47
  );
29
  'aliases' =>
30
  array (
31
  ),
32
+ 'reference' => '5940d0d84205db6d574cd50d40ca93a4c553b4e4',
33
  'name' => 'wp-seopress/wp-seopress',
34
  ),
35
  'versions' =>
41
  'aliases' =>
42
  array (
43
  ),
44
+ 'reference' => '5940d0d84205db6d574cd50d40ca93a4c553b4e4',
45
  ),
46
  ),
47
  );
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '081181e26a994092b89d217ddc7c60e862142f28',
10
  'name' => 'wp-seopress/wp-seopress',
11
  ),
12
  'versions' =>
@@ -18,7 +18,7 @@
18
  'aliases' =>
19
  array (
20
  ),
21
- 'reference' => '081181e26a994092b89d217ddc7c60e862142f28',
22
  ),
23
  ),
24
  );
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '5940d0d84205db6d574cd50d40ca93a4c553b4e4',
10
  'name' => 'wp-seopress/wp-seopress',
11
  ),
12
  'versions' =>
18
  'aliases' =>
19
  array (
20
  ),
21
+ 'reference' => '5940d0d84205db6d574cd50d40ca93a4c553b4e4',
22
  ),
23
  ),
24
  );