From ebe00b4f73a2f0f7644171342549227c85a83b1b Mon Sep 17 00:00:00 2001 From: Andy Feliciotti Date: Sat, 23 Mar 2024 23:29:06 -0500 Subject: [PATCH] 1.3.14 --- mightyshare.php | 6 +++--- readme.txt | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/mightyshare.php b/mightyshare.php index 19546bf..75e2aaa 100644 --- a/mightyshare.php +++ b/mightyshare.php @@ -3,7 +3,7 @@ * Plugin Name: MightyShare * Plugin URI: https://mightyshare.io/wordpress/ * Description: Automatically generate social share preview images with MightyShare! - * Version: 1.3.13 + * Version: 1.3.14 * Text Domain: mightyshare * Author: MightyShare * Author URI: https://mightyshare.io @@ -13,7 +13,7 @@ exit; // Exit if accessed directly. } -define( 'MIGHTYSHARE_VERSION', '1.3.13' ); +define( 'MIGHTYSHARE_VERSION', '1.3.14' ); define( 'MIGHTYSHARE_DIR_URL', plugin_dir_url( __FILE__ ) ); define( 'MIGHTYSHARE_DIR_URI', plugin_dir_path( __FILE__ ) ); @@ -976,7 +976,7 @@ public static function mightyshare_generate_og_image( $template_parts = null ) { } $value = rawurlencode( htmlspecialchars_decode( $image_url ) ); } elseif ( $value_key === 'title' || $value_key === 'description' ) { - $value = rawurlencode( htmlspecialchars_decode( $value ) ); + $value = rawurlencode( htmlspecialchars_decode( $value ?? '' ) ); }; array_push( diff --git a/readme.txt b/readme.txt index 8e697ef..c758293 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: Social Preview, Open Graph, Social Media, Twitter Card, Open Graph Images Requires at least: 5.4 Tested up to: 6.5 Requires PHP: 7.4 -Stable tag: 1.3.13 +Stable tag: 1.3.14 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl.html @@ -70,6 +70,9 @@ If you are using an SEO plugin be sure to have a default image set for the type == Changelog == += 1.3.14 = +* Bug fix for PHP warning. + = 1.3.13 = * WordPress 6.5 compatibility. * [Frontend PHP](https://mightyshare.io/docs/get_mightyshare_url/) function added for developers to use.