SEOPress - Version 3.6.2.1

Version Description

  • FIX Video duration for manual edit (automatic schema)
  • FIX Notice: Undefined variable: seopress_excerpt_length
  • FIX undefined 'post_author' variable if no posts in author archive
  • FIX %%post_author%% and %%author_bio%% variables
  • FIX Redirections with HTML entities
Download this release

Release Info

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

Code changes from version 3.6.2 to 3.6.2.1

inc/functions/options-redirections.php CHANGED
@@ -45,10 +45,10 @@ function seopress_redirections_term_type() {
45
  function seopress_redirections_value() {
46
  global $post;
47
  if (is_singular() && get_post_meta($post->ID,'_seopress_redirections_value',true)) {
48
- $seopress_redirections_value = get_post_meta($post->ID,'_seopress_redirections_value',true);
49
  return $seopress_redirections_value;
50
  } elseif ((is_tax() || is_category() || is_tag()) && get_term_meta(get_queried_object_id(),'_seopress_redirections_value',true) !='') {
51
- $seopress_redirections_value = get_term_meta(get_queried_object_id(),'_seopress_redirections_value',true);
52
  return $seopress_redirections_value;
53
  } else {
54
  $seopress_redirections_value = basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
45
  function seopress_redirections_value() {
46
  global $post;
47
  if (is_singular() && get_post_meta($post->ID,'_seopress_redirections_value',true)) {
48
+ $seopress_redirections_value = html_entity_decode(get_post_meta($post->ID,'_seopress_redirections_value',true));
49
  return $seopress_redirections_value;
50
  } elseif ((is_tax() || is_category() || is_tag()) && get_term_meta(get_queried_object_id(),'_seopress_redirections_value',true) !='') {
51
+ $seopress_redirections_value = html_entity_decode(get_term_meta(get_queried_object_id(),'_seopress_redirections_value',true));
52
  return $seopress_redirections_value;
53
  } else {
54
  $seopress_redirections_value = basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
inc/functions/options-titles-metas.php CHANGED
@@ -264,6 +264,7 @@ function seopress_titles_the_title() {
264
  $seopress_get_the_excerpt = $variables['seopress_get_the_excerpt'];
265
  $seopress_titles_template_variables_array = $variables['seopress_titles_template_variables_array'];
266
  $seopress_titles_template_replace_array = $variables['seopress_titles_template_replace_array'];
 
267
 
268
  if ( is_front_page() && is_home() && isset($post) && get_post_meta($post->ID,'_seopress_titles_title',true) =='') { //HOMEPAGE
269
  if (seopress_titles_home_site_title_option() !='') {
@@ -458,6 +459,7 @@ function seopress_titles_the_description_content() {
458
  $seopress_get_the_excerpt = $variables['seopress_get_the_excerpt'];
459
  $seopress_titles_template_variables_array = $variables['seopress_titles_template_variables_array'];
460
  $seopress_titles_template_replace_array = $variables['seopress_titles_template_replace_array'];
 
461
 
462
  if ( is_front_page() && is_home() && isset($post) && get_post_meta($post->ID,'_seopress_titles_desc',true) =='' ) { //HOMEPAGE
463
  if (seopress_titles_home_site_desc_option() !='') { //IS GLOBAL
264
  $seopress_get_the_excerpt = $variables['seopress_get_the_excerpt'];
265
  $seopress_titles_template_variables_array = $variables['seopress_titles_template_variables_array'];
266
  $seopress_titles_template_replace_array = $variables['seopress_titles_template_replace_array'];
267
+ $seopress_excerpt_length = $variables['seopress_excerpt_length'];
268
 
269
  if ( is_front_page() && is_home() && isset($post) && get_post_meta($post->ID,'_seopress_titles_title',true) =='') { //HOMEPAGE
270
  if (seopress_titles_home_site_title_option() !='') {
459
  $seopress_get_the_excerpt = $variables['seopress_get_the_excerpt'];
460
  $seopress_titles_template_variables_array = $variables['seopress_titles_template_variables_array'];
461
  $seopress_titles_template_replace_array = $variables['seopress_titles_template_replace_array'];
462
+ $seopress_excerpt_length = $variables['seopress_excerpt_length'];
463
 
464
  if ( is_front_page() && is_home() && isset($post) && get_post_meta($post->ID,'_seopress_titles_desc',true) =='' ) { //HOMEPAGE
465
  if (seopress_titles_home_site_desc_option() !='') { //IS GLOBAL
inc/functions/variables/dynamic-variables.php CHANGED
@@ -53,8 +53,16 @@ if (get_query_var('paged') >='1') {
53
  $seopress_paged = apply_filters('seopress_paged', $seopress_paged);
54
  }
55
 
56
- if(is_single() || is_author()){
57
  $the_author_meta = get_the_author_meta('display_name', $post->post_author);
 
 
 
 
 
 
 
 
58
  }
59
 
60
  if (is_single() && has_category()) {
@@ -131,10 +139,6 @@ if ( is_plugin_active( 'woocommerce/woocommerce.php' )) {
131
  }
132
  }
133
 
134
- if (get_the_author_meta('description') !='') {
135
- $author_bio = esc_html(get_the_author_meta('description'));
136
- }
137
-
138
  $seopress_titles_template_variables_array = array(
139
  '%%sep%%',
140
  '%%sitetitle%%',
@@ -241,7 +245,8 @@ $variables = array(
241
  'author_bio' => $author_bio,
242
  'seopress_get_the_excerpt' => $seopress_get_the_excerpt,
243
  'seopress_titles_template_variables_array' => $seopress_titles_template_variables_array,
244
- 'seopress_titles_template_replace_array' => $seopress_titles_template_replace_array
 
245
  );
246
 
247
  return $variables;
53
  $seopress_paged = apply_filters('seopress_paged', $seopress_paged);
54
  }
55
 
56
+ if (is_singular() && isset($post->post_author)){
57
  $the_author_meta = get_the_author_meta('display_name', $post->post_author);
58
+ $author_bio = esc_attr(stripslashes_deep(wp_filter_nohtml_kses(wp_strip_all_tags(strip_shortcodes(get_the_author_meta('description', $post->post_author))))));
59
+ }
60
+
61
+ if (is_author() && NULL !== get_queried_object()) {
62
+ $author = get_queried_object();
63
+ $the_author_meta = $author->display_name;
64
+ $author_bio = esc_attr(stripslashes_deep(wp_filter_nohtml_kses(wp_strip_all_tags(strip_shortcodes(get_the_author_meta('description', $author->ID))))));
65
+
66
  }
67
 
68
  if (is_single() && has_category()) {
139
  }
140
  }
141
 
 
 
 
 
142
  $seopress_titles_template_variables_array = array(
143
  '%%sep%%',
144
  '%%sitetitle%%',
245
  'author_bio' => $author_bio,
246
  'seopress_get_the_excerpt' => $seopress_get_the_excerpt,
247
  'seopress_titles_template_variables_array' => $seopress_titles_template_variables_array,
248
+ 'seopress_titles_template_replace_array' => $seopress_titles_template_replace_array,
249
+ 'seopress_excerpt_length' => $seopress_excerpt_length,
250
  );
251
 
252
  return $variables;
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: SEO, XML sitemap, meta title, open graph, content analysis, knowledge grap
6
  Requires at least: 4.6+
7
  Tested up to: 5.2
8
  Requires PHP: 5.6
9
- Stable tag: 3.6.2
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -219,6 +219,12 @@ Any questions? Visit our website <a href="https://www.seopress.org?utm_source=w.
219
  60. Installation Wizard
220
 
221
  == Changelog ==
 
 
 
 
 
 
222
  = 3.6.2 =
223
  * NEW Add custom manual / automatic schema with dynamic variables (PRO)
224
  * NEW Add custom tracking code after opening body tag like Google Tag Manager 🍾
6
  Requires at least: 4.6+
7
  Tested up to: 5.2
8
  Requires PHP: 5.6
9
+ Stable tag: 3.6.2.1
10
  License: GPLv2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
 
219
  60. Installation Wizard
220
 
221
  == Changelog ==
222
+ = 3.6.2.1 =
223
+ * FIX Video duration for manual edit (automatic schema)
224
+ * FIX Notice: Undefined variable: seopress_excerpt_length
225
+ * FIX undefined 'post_author' variable if no posts in author archive
226
+ * FIX %%post_author%% and %%author_bio%% variables
227
+ * FIX Redirections with HTML entities
228
  = 3.6.2 =
229
  * NEW Add custom manual / automatic schema with dynamic variables (PRO)
230
  * NEW Add custom tracking code after opening body tag like Google Tag Manager 🍾
seopress.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SEOPress
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
- Version: 3.6.2
7
  Author: Benjamin Denis
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
@@ -53,7 +53,7 @@ register_deactivation_hook(__FILE__, 'seopress_deactivation');
53
  ///////////////////////////////////////////////////////////////////////////////////////////////////
54
  //Define
55
  ///////////////////////////////////////////////////////////////////////////////////////////////////
56
- define( 'SEOPRESS_VERSION', '3.6.2' );
57
  define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
58
 
59
  ///////////////////////////////////////////////////////////////////////////////////////////////////
3
  Plugin Name: SEOPress
4
  Plugin URI: https://www.seopress.org/
5
  Description: One of the best SEO plugins for WordPress.
6
+ Version: 3.6.2.1
7
  Author: Benjamin Denis
8
  Author URI: https://www.seopress.org/
9
  License: GPLv2
53
  ///////////////////////////////////////////////////////////////////////////////////////////////////
54
  //Define
55
  ///////////////////////////////////////////////////////////////////////////////////////////////////
56
+ define( 'SEOPRESS_VERSION', '3.6.2.1' );
57
  define( 'SEOPRESS_AUTHOR', 'Benjamin Denis' );
58
 
59
  ///////////////////////////////////////////////////////////////////////////////////////////////////