WP Meta SEO - Version 4.2.2

Version Description

  • Fix : JS error in Gutenberg editor that prevent the metabox to be 100% loaded
Download this release

Release Info

Developer JoomUnited
Plugin Icon 128x128 WP Meta SEO
Version 4.2.2
Comparing to
See all releases

Code changes from version 4.2.1 to 4.2.2

assets/js/wp-metaseo-metabox.js CHANGED
@@ -327,7 +327,10 @@ jQuery(document).ready(function ($) {
327
  // Call ajax to search keywords
328
  function wpms_filter_search_keywords() {
329
  var time = $('select[name="gsc_keywords_time_filter_select"] option:selected').val();
330
- var keycsl = $('input.wpms-search-key-csl').val().trim().toLocaleString();
 
 
 
331
  var searchType = $('select[name="filter_type_name"] option:selected').val();
332
  var postId = $('#post_ID').val();
333
  var showitems = [];
327
  // Call ajax to search keywords
328
  function wpms_filter_search_keywords() {
329
  var time = $('select[name="gsc_keywords_time_filter_select"] option:selected').val();
330
+ var keycsl = '';
331
+ if (typeof $('input.wpms-search-key-csl').val() !== 'undefined') {
332
+ keycsl = $('input.wpms-search-key-csl').val().trim().toLocaleString();
333
+ }
334
  var searchType = $('select[name="filter_type_name"] option:selected').val();
335
  var postId = $('#post_ID').val();
336
  var showitems = [];
inc/class.metaseo-sitemap.php CHANGED
@@ -2278,7 +2278,8 @@ ORDER BY p.post_date DESC', array($post_type)));
2278
  id="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" type="checkbox"
2279
  name="' . esc_attr('_metaseo_settings_sitemap[wpms_sitemap_menus][' . $menu->ID . '][menu_id]') . '"
2280
  value="' . esc_attr($menu->ID) . '" checked>';
2281
- echo '<label for="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" class="wpms-text">' . esc_html($title) . '</label>';
 
2282
  echo '</div>';
2283
  } else {
2284
  if (isset($this->settings_sitemap['wpms_sitemap_menus'][$menu->ID]['menu_id'])
@@ -2290,7 +2291,8 @@ ORDER BY p.post_date DESC', array($post_type)));
2290
  id="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" type="checkbox"
2291
  name="' . esc_attr('_metaseo_settings_sitemap[wpms_sitemap_menus][' . $menu->ID . '][menu_id]') . '"
2292
  value="' . esc_attr($menu->ID) . '" checked>';
2293
- echo '<label for="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" class="wpms-text">' . esc_html($title) . '</label>';
 
2294
  echo '</div>';
2295
  } else {
2296
  echo '<input class="wpms_sitemap_input_link" type="hidden" data-type="menu"
@@ -2300,7 +2302,8 @@ ORDER BY p.post_date DESC', array($post_type)));
2300
  id="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" type="checkbox"
2301
  name="' . esc_attr('_metaseo_settings_sitemap[wpms_sitemap_menus][' . $menu->ID . '][menu_id]') . '"
2302
  value="' . esc_attr($menu->ID) . '">';
2303
- echo '<label for="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" class="wpms-text">' . esc_html($title) . '</label>';
 
2304
  echo '</div>';
2305
  }
2306
  }
@@ -2611,7 +2614,8 @@ ORDER BY p.post_date DESC', array($_POST['category_id'])));
2611
  $html .= '<input class="' . esc_attr('cb_sitemaps_posts wpms_xmap_posts category' . $_POST['slug']) . '"
2612
  id="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" type="checkbox"
2613
  name="_metaseo_settings_sitemap[wpms_sitemap_posts]" value="' . esc_attr($p->ID) . '" checked>';
2614
- $html .= '<label for="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" class="wpms-text">' . esc_html($title) . '</label>';
 
2615
  $html .= '</div>';
2616
  } else {
2617
  $html .= '<input class="wpms_sitemap_input_link" type="hidden"
@@ -2620,7 +2624,8 @@ ORDER BY p.post_date DESC', array($_POST['category_id'])));
2620
  $html .= '<input class="' . esc_attr('cb_sitemaps_posts wpms_xmap_posts category' . $_POST['slug']) . '"
2621
  id="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" type="checkbox"
2622
  name="_metaseo_settings_sitemap[wpms_sitemap_posts]" value="' . esc_attr($p->ID) . '">';
2623
- $html .= '<label for="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" class="wpms-text">' . esc_html($title) . '</label>';
 
2624
  $html .= '</div>';
2625
  }
2626
 
2278
  id="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" type="checkbox"
2279
  name="' . esc_attr('_metaseo_settings_sitemap[wpms_sitemap_menus][' . $menu->ID . '][menu_id]') . '"
2280
  value="' . esc_attr($menu->ID) . '" checked>';
2281
+ //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- It cannot display some special characters on the title
2282
+ echo '<label for="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" class="wpms-text">' . $title . '</label>';
2283
  echo '</div>';
2284
  } else {
2285
  if (isset($this->settings_sitemap['wpms_sitemap_menus'][$menu->ID]['menu_id'])
2291
  id="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" type="checkbox"
2292
  name="' . esc_attr('_metaseo_settings_sitemap[wpms_sitemap_menus][' . $menu->ID . '][menu_id]') . '"
2293
  value="' . esc_attr($menu->ID) . '" checked>';
2294
+ //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- It cannot display some special characters on the title
2295
+ echo '<label for="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" class="wpms-text">' . $title . '</label>';
2296
  echo '</div>';
2297
  } else {
2298
  echo '<input class="wpms_sitemap_input_link" type="hidden" data-type="menu"
2302
  id="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" type="checkbox"
2303
  name="' . esc_attr('_metaseo_settings_sitemap[wpms_sitemap_menus][' . $menu->ID . '][menu_id]') . '"
2304
  value="' . esc_attr($menu->ID) . '">';
2305
+ //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- It cannot display some special characters on the title
2306
+ echo '<label for="' . esc_attr('wpms_sitemap_menus_' . $menu->ID) . '" class="wpms-text">' . $title . '</label>';
2307
  echo '</div>';
2308
  }
2309
  }
2614
  $html .= '<input class="' . esc_attr('cb_sitemaps_posts wpms_xmap_posts category' . $_POST['slug']) . '"
2615
  id="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" type="checkbox"
2616
  name="_metaseo_settings_sitemap[wpms_sitemap_posts]" value="' . esc_attr($p->ID) . '" checked>';
2617
+ //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- It cannot display some special characters on the title
2618
+ $html .= '<label for="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" class="wpms-text">' . $title . '</label>';
2619
  $html .= '</div>';
2620
  } else {
2621
  $html .= '<input class="wpms_sitemap_input_link" type="hidden"
2624
  $html .= '<input class="' . esc_attr('cb_sitemaps_posts wpms_xmap_posts category' . $_POST['slug']) . '"
2625
  id="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" type="checkbox"
2626
  name="_metaseo_settings_sitemap[wpms_sitemap_posts]" value="' . esc_attr($p->ID) . '">';
2627
+ //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- It cannot display some special characters on the title
2628
+ $html .= '<label for="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" class="wpms-text">' . $title . '</label>';
2629
  $html .= '</div>';
2630
  }
2631
 
inc/pages/sitemaps/metaseo-source_pages.php CHANGED
@@ -115,7 +115,8 @@ defined('ABSPATH') || die('No direct script access allowed!');
115
  id="' . esc_attr('wpms_sitemap_pages_' . $value->ID) . '" type="checkbox"
116
  name="' . esc_attr('_metaseo_settings_sitemap[wpms_sitemap_pages][' . $value->ID . '][post_id]') . '"
117
  value="' . esc_attr($value->ID) . '" checked>';
118
- echo '<label for="' . esc_attr('wpms_sitemap_pages_' . $value->ID) . '" class="wpms-text ju-setting-label">' . esc_html($value->post_title) . '</label>';
 
119
  echo '</div>';
120
  } else {
121
  echo '<input class="wpms_sitemap_input_link" type="hidden"
@@ -125,7 +126,8 @@ defined('ABSPATH') || die('No direct script access allowed!');
125
  id="' . esc_attr('wpms_sitemap_pages_' . $value->ID) . '" type="checkbox"
126
  name="' . esc_attr('_metaseo_settings_sitemap[wpms_sitemap_pages][' . $value->ID . '][post_id]') . '"
127
  value="' . esc_attr($value->ID) . '">';
128
- echo '<label for="' . esc_attr('wpms_sitemap_pages_' . $value->ID) . '" class="wpms-text ju-setting-label">' . esc_html($value->post_title) . '</label>';
 
129
  echo '</div>';
130
  }
131
  // phpcs:ignore WordPress.Security.EscapeOutput -- Content escaped in the method MetaSeoSitemap::viewPriority and MetaSeoSitemap::viewFrequency
115
  id="' . esc_attr('wpms_sitemap_pages_' . $value->ID) . '" type="checkbox"
116
  name="' . esc_attr('_metaseo_settings_sitemap[wpms_sitemap_pages][' . $value->ID . '][post_id]') . '"
117
  value="' . esc_attr($value->ID) . '" checked>';
118
+ //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- It cannot display some special characters on the title
119
+ echo '<label for="' . esc_attr('wpms_sitemap_pages_' . $value->ID) . '" class="wpms-text ju-setting-label">' . $value->post_title . '</label>';
120
  echo '</div>';
121
  } else {
122
  echo '<input class="wpms_sitemap_input_link" type="hidden"
126
  id="' . esc_attr('wpms_sitemap_pages_' . $value->ID) . '" type="checkbox"
127
  name="' . esc_attr('_metaseo_settings_sitemap[wpms_sitemap_pages][' . $value->ID . '][post_id]') . '"
128
  value="' . esc_attr($value->ID) . '">';
129
+ //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- It cannot display some special characters on the title
130
+ echo '<label for="' . esc_attr('wpms_sitemap_pages_' . $value->ID) . '" class="wpms-text ju-setting-label">' . $value->post_title . '</label>';
131
  echo '</div>';
132
  }
133
  // phpcs:ignore WordPress.Security.EscapeOutput -- Content escaped in the method MetaSeoSitemap::viewPriority and MetaSeoSitemap::viewFrequency
inc/pages/sitemaps/metaseo-source_posts.php CHANGED
@@ -173,7 +173,8 @@ defined('ABSPATH') || die('No direct script access allowed!');
173
  echo '<input class="' . esc_attr('cb_sitemaps_posts wpms_xmap_posts ' . $value->taxo . $value->slug) . '"
174
  id="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" type="checkbox"
175
  name="_metaseo_settings_sitemap[wpms_sitemap_posts]" value="' . esc_attr($p->ID) . '" checked>';
176
- echo '<label for="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" class="wpms-text">' . esc_html($ptitle) . '</label>';
 
177
  echo '</div>';
178
  } else {
179
  echo '<input class="wpms_sitemap_input_link" type="hidden"
@@ -182,7 +183,8 @@ defined('ABSPATH') || die('No direct script access allowed!');
182
  echo '<input class="' . esc_attr('cb_sitemaps_posts wpms_xmap_posts ' . $value->taxo . $value->slug) . '"
183
  id="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" type="checkbox"
184
  name="_metaseo_settings_sitemap[wpms_sitemap_posts]" value="' . esc_attr($p->ID) . '">';
185
- echo '<label for="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" class="wpms-text">' . esc_html($ptitle) . '</label>';
 
186
  echo '</div>';
187
  }
188
 
173
  echo '<input class="' . esc_attr('cb_sitemaps_posts wpms_xmap_posts ' . $value->taxo . $value->slug) . '"
174
  id="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" type="checkbox"
175
  name="_metaseo_settings_sitemap[wpms_sitemap_posts]" value="' . esc_attr($p->ID) . '" checked>';
176
+ //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- It cannot display some special characters on the title
177
+ echo '<label for="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" class="wpms-text">' . $ptitle . '</label>';
178
  echo '</div>';
179
  } else {
180
  echo '<input class="wpms_sitemap_input_link" type="hidden"
183
  echo '<input class="' . esc_attr('cb_sitemaps_posts wpms_xmap_posts ' . $value->taxo . $value->slug) . '"
184
  id="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" type="checkbox"
185
  name="_metaseo_settings_sitemap[wpms_sitemap_posts]" value="' . esc_attr($p->ID) . '">';
186
+ //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- It cannot display some special characters on the title
187
+ echo '<label for="' . esc_attr('wpms_sitemap_posts_' . $p->ID) . '" class="wpms-text">' . $ptitle . '</label>';
188
  echo '</div>';
189
  }
190
 
languages/wp-meta-seo-en_US.mo CHANGED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: JoomUnited
3
  Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
4
  Requires at least: 4.7
5
  Tested up to: 5.3.2
6
- Stable tag: 4.2.1
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -259,6 +259,9 @@ Yes WP Meta SEO is compatible with Gutenberg editor since 3.7 version.
259
 
260
  == Changelog ==
261
 
 
 
 
262
  = 4.2.1 =
263
  * Fix : Translation sharing issue in some browsers
264
 
3
  Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
4
  Requires at least: 4.7
5
  Tested up to: 5.3.2
6
+ Stable tag: 4.2.2
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
259
 
260
  == Changelog ==
261
 
262
+ = 4.2.2 =
263
+ * Fix : JS error in Gutenberg editor that prevent the metabox to be 100% loaded
264
+
265
  = 4.2.1 =
266
  * Fix : Translation sharing issue in some browsers
267
 
wp-meta-seo.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: WP Meta SEO
5
  * Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
6
  * Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
7
- * Version: 4.2.1
8
  * Text Domain: wp-meta-seo
9
  * Domain Path: /languages
10
  * Author: JoomUnited
@@ -132,7 +132,7 @@ if (!defined('WPMSEO_VERSION')) {
132
  /**
133
  * Plugin version
134
  */
135
- define('WPMSEO_VERSION', '4.2.1');
136
  }
137
 
138
  if (!defined('WPMS_CLIENTID')) {
4
  * Plugin Name: WP Meta SEO
5
  * Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
6
  * Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
7
+ * Version: 4.2.2
8
  * Text Domain: wp-meta-seo
9
  * Domain Path: /languages
10
  * Author: JoomUnited
132
  /**
133
  * Plugin version
134
  */
135
+ define('WPMSEO_VERSION', '4.2.2');
136
  }
137
 
138
  if (!defined('WPMS_CLIENTID')) {