Version Description
- Fix : Escape the breadcrumb separator before outputting it to the page
Download this release
Release Info
Developer | JoomUnited |
Plugin | WP Meta SEO |
Version | 4.4.7 |
Comparing to | |
See all releases |
Code changes from version 4.4.6 to 4.4.7
- inc/breadcrumb/class.metaseo-breadcrumb.php +4 -3
- languages/wp-meta-seo-en_US.mo +0 -0
- readme.txt +4 -1
- wp-meta-seo.php +17 -16
inc/breadcrumb/class.metaseo-breadcrumb.php
CHANGED
@@ -146,11 +146,11 @@ class MetaSeoBreadcrumb
|
|
146 |
// for reverse has true
|
147 |
if ($reverse) {
|
148 |
if ($key > 0) {
|
149 |
-
$html .=
|
150 |
}
|
151 |
} else {
|
152 |
if ($position > 1) {
|
153 |
-
$html .= $this->breadcrumb_settings['separator'];
|
154 |
}
|
155 |
}
|
156 |
|
@@ -180,7 +180,7 @@ class MetaSeoBreadcrumb
|
|
180 |
'%title%' => esc_attr(strip_tags($breadcrumb['name'])),
|
181 |
'%link%' => esc_url($breadcrumb['url']),
|
182 |
'%htitle%' => esc_html($breadcrumb['name']),
|
183 |
-
'%type%' =>
|
184 |
'%ftitle%' => esc_attr(strip_tags($breadcrumb['name'])),
|
185 |
'%fhtitle%' => esc_html($breadcrumb['name']),
|
186 |
'%position%' => esc_attr($position)
|
@@ -189,6 +189,7 @@ class MetaSeoBreadcrumb
|
|
189 |
if (is_array($params['%type%'])) {
|
190 |
$params['%type%'] = implode(' ', $params['%type%']);
|
191 |
}
|
|
|
192 |
|
193 |
if (empty($this->breadcrumb_settings['clickable'])) {
|
194 |
return str_replace(array_keys($params), $params, $this->template_no_anchor);
|
146 |
// for reverse has true
|
147 |
if ($reverse) {
|
148 |
if ($key > 0) {
|
149 |
+
$html .= esc_html($this->breadcrumb_settings['separator']);
|
150 |
}
|
151 |
} else {
|
152 |
if ($position > 1) {
|
153 |
+
$html .= esc_html($this->breadcrumb_settings['separator']);
|
154 |
}
|
155 |
}
|
156 |
|
180 |
'%title%' => esc_attr(strip_tags($breadcrumb['name'])),
|
181 |
'%link%' => esc_url($breadcrumb['url']),
|
182 |
'%htitle%' => esc_html($breadcrumb['name']),
|
183 |
+
'%type%' => $breadcrumb['type'],
|
184 |
'%ftitle%' => esc_attr(strip_tags($breadcrumb['name'])),
|
185 |
'%fhtitle%' => esc_html($breadcrumb['name']),
|
186 |
'%position%' => esc_attr($position)
|
189 |
if (is_array($params['%type%'])) {
|
190 |
$params['%type%'] = implode(' ', $params['%type%']);
|
191 |
}
|
192 |
+
$params['%type%'] = esc_attr($params['%type%']);
|
193 |
|
194 |
if (empty($this->breadcrumb_settings['clickable'])) {
|
195 |
return str_replace(array_keys($params), $params, $this->template_no_anchor);
|
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.9.3
|
6 |
-
Stable tag: 4.4.
|
7 |
Requires PHP: 5.6
|
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.4.6 =
|
263 |
* Add : WP Meta Seo widget: Quick SEO Preview
|
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.9.3
|
6 |
+
Stable tag: 4.4.7
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
259 |
|
260 |
== Changelog ==
|
261 |
|
262 |
+
= 4.4.7 =
|
263 |
+
* Fix : Escape the breadcrumb separator before outputting it to the page
|
264 |
+
|
265 |
= 4.4.6 =
|
266 |
* Add : WP Meta Seo widget: Quick SEO Preview
|
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.4.
|
8 |
* Text Domain: wp-meta-seo
|
9 |
* Domain Path: /languages
|
10 |
* Author: JoomUnited
|
@@ -133,7 +133,7 @@ if (!defined('WPMSEO_VERSION')) {
|
|
133 |
/**
|
134 |
* Plugin version
|
135 |
*/
|
136 |
-
define('WPMSEO_VERSION', '4.4.
|
137 |
}
|
138 |
|
139 |
if (!defined('WPMS_CLIENTID')) {
|
@@ -465,26 +465,27 @@ if (is_admin()) {
|
|
465 |
* shortcode for breadcrumb
|
466 |
*/
|
467 |
add_shortcode('wpms_breadcrumb', 'wpmsBreadcrumbShortcode');
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
$
|
478 |
-
|
479 |
-
$html
|
480 |
-
if (isset($params['reverse']) && (int)
|
481 |
$html .= wpmsBreadcrumb(true, true);
|
482 |
} else {
|
483 |
$html .= wpmsBreadcrumb(true, false);
|
484 |
}
|
485 |
$html .= '</div>';
|
|
|
|
|
486 |
}
|
487 |
-
return $html;
|
488 |
}
|
489 |
|
490 |
// Check again and modify title, meta title, meta description before output
|
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.4.7
|
8 |
* Text Domain: wp-meta-seo
|
9 |
* Domain Path: /languages
|
10 |
* Author: JoomUnited
|
133 |
/**
|
134 |
* Plugin version
|
135 |
*/
|
136 |
+
define('WPMSEO_VERSION', '4.4.7');
|
137 |
}
|
138 |
|
139 |
if (!defined('WPMS_CLIENTID')) {
|
465 |
* shortcode for breadcrumb
|
466 |
*/
|
467 |
add_shortcode('wpms_breadcrumb', 'wpmsBreadcrumbShortcode');
|
468 |
+
|
469 |
+
if (!function_exists('wpmsBreadcrumbShortcode')) {
|
470 |
+
/**
|
471 |
+
* Create shortcode for breadcrumb
|
472 |
+
*
|
473 |
+
* @param array $params Shortcode attribute
|
474 |
+
*
|
475 |
+
* @return string
|
476 |
+
*/
|
477 |
+
function wpmsBreadcrumbShortcode($params)
|
478 |
+
{
|
479 |
+
$html = '<div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">';
|
480 |
+
if (isset($params['reverse']) && (int)$params['reverse'] === 1) {
|
481 |
$html .= wpmsBreadcrumb(true, true);
|
482 |
} else {
|
483 |
$html .= wpmsBreadcrumb(true, false);
|
484 |
}
|
485 |
$html .= '</div>';
|
486 |
+
|
487 |
+
return $html;
|
488 |
}
|
|
|
489 |
}
|
490 |
|
491 |
// Check again and modify title, meta title, meta description before output
|