Skip to content

Commit

Permalink
Merge pull request #3 from sagarb90/security-audit-fix
Browse files Browse the repository at this point in the history
Fix: Security audit fix
  • Loading branch information
Nikschavan committed Oct 15, 2020
2 parents 5962533 + b9413ec commit aef1854
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions class-json-ld-breadcrumbs.php
Expand Up @@ -128,17 +128,17 @@ private function add_crumb( $name, $url = '', $image = '' ) {
'@type' => 'ListItem',
'position' => $this->crumb_position,
'item' => array(
'@id' => $url,
'name' => $name,
'@id' => esc_url( $url ),
'name' => esc_html( $name ),
),
);
} else {
$this->crumbs[] = array(
'@type' => 'ListItem',
'position' => $this->crumb_position,
'item' => array(
'@id' => $url,
'name' => $name,
'@id' => esc_url( $url ),
'name' => esc_html( $name ),
'image' => $image,
),
);
Expand Down
4 changes: 2 additions & 2 deletions json-ld-breadcrumbs.php
Expand Up @@ -7,15 +7,15 @@
* Author URI: https://www.nikhilchavan.com/
* Text Domain: json-ld-breadcrumbs
* Domain Path: /languages
* Version: 1.0.0
* Version: 1.0.2
*
* @package Invisible_Breadcrumbs
*/

// Exit if the file is called directy by URL.
defined( 'ABSPATH' ) || exit;

define( 'JSON_LD_BREADCRUMBS_VER', '1.0.0' );
define( 'JSON_LD_BREADCRUMBS_VER', '1.0.2' );
define( 'JSON_LD_BREADCRUMBS_DIR', plugin_dir_path( __FILE__ ) );
define( 'JSON_LD_BREADCRUMBS_URL', plugins_url( '/', __FILE__ ) );
define( 'JSON_LD_BREADCRUMBS_PATH', plugin_basename( __FILE__ ) );
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/BrainstormForce
Tags: schema, json-ld, breadcrumb, google, schema.org, structured data, seo, microdata
Requires at least: 4.4
Tested up to: 5.5
Stable tag: 1.0.1
Stable tag: 1.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -23,6 +23,9 @@ Credits - [SEO Yoast](https://github.com/Yoast/wordpress-seo/blob/trunk/frontend

== Changelog ==

= 1.0.2 =
* Fix: Hardened the security.

= 1.0.1 =
* Improvement - Updated code with the latest WordPress PHP_CodeSniffer rules.
* Improvement - Compatibility with WordPress 5.5.
Expand Down

0 comments on commit aef1854

Please sign in to comment.