From 78c675d1496a4fc61bd3d602ca138da1614bbcea Mon Sep 17 00:00:00 2001 From: Adam Lipscore Date: Wed, 13 Aug 2025 18:10:50 +0200 Subject: [PATCH] Fix for notice in widget helper --- README.md | 3 +++ includes/class-lipscore-widget-helper.php | 2 +- lipscore.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 96ec3c7..5e6142f 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ ## Changelog ## +### 0.6.3 ### +* Fixed notice in widget helper + ### 0.6.1 ### * Fixed non existing product in order reminder diff --git a/includes/class-lipscore-widget-helper.php b/includes/class-lipscore-widget-helper.php index c8e7755..64a97fd 100644 --- a/includes/class-lipscore-widget-helper.php +++ b/includes/class-lipscore-widget-helper.php @@ -36,7 +36,7 @@ public function richsnippet_product_attrs( $productData ) { protected function to_string( $attrs ) { $strAttrs = array(); foreach ($attrs as $attr => $value) { - $value = htmlspecialchars( $value ); + $value = htmlspecialchars( (string) $value ); $strAttrs[] = "$attr=\"$value\""; } return implode( ' ', $strAttrs ); diff --git a/lipscore.php b/lipscore.php index 8a844ab..af457a8 100644 --- a/lipscore.php +++ b/lipscore.php @@ -8,7 +8,7 @@ * Plugin Name: Lipscore Ratings and Reviews * Plugin URI: http://lipscore.com/ * Description: Collecting reviews is difficult. Let the most efficient and flexible plugin in the world do it for you. - * Version: 0.6.2 + * Version: 0.6.3 * Author: Lipscore * Author URI: http://lipscore.com/ * Donate link: http://lipscore.com/