From 77856fd431e90818c3bb67cb960c6ff360bfd189 Mon Sep 17 00:00:00 2001 From: Andy Feliciotti Date: Thu, 19 May 2022 14:55:37 -0600 Subject: [PATCH] Fix display issue --- mightyshare.php | 6 +++--- readme.txt | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/mightyshare.php b/mightyshare.php index dae3fd5..77fdb69 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.0.4 + * Version: 1.0.5 * Text Domain: mightyshare * Author: MightyShare * Author URI: https://mightyshare.io @@ -13,7 +13,7 @@ exit; // Exit if accessed directly. } -define( 'MIGHTYSHARE_VERSION', '1.0.4' ); +define( 'MIGHTYSHARE_VERSION', '1.0.5' ); define( 'MIGHTYSHARE_DIR_URL', plugin_dir_url( __FILE__ ) ); define( 'MIGHTYSHARE_DIR_URI', plugin_dir_path( __FILE__ ) ); @@ -60,7 +60,7 @@ function mightshare_metaboxes( $metaboxes ) { if ( ! empty( $options ) ) { $default_enabled = ' (Disabled)'; if ( isset( $_GET['post'] ) ) { - $current_post_id = esc_url_raw( wp_unslash( $_GET['post'] ) ); + $current_post_id = esc_attr( wp_unslash( $_GET['post'] ) ); if ( ! empty( $current_post_id ) && $options['enabled_on']['post_types'] && get_post_type( $current_post_id ) && in_array( get_post_type( $current_post_id ), $options['enabled_on']['post_types'], true ) ) { $default_enabled = ' (Enabled)'; } diff --git a/readme.txt b/readme.txt index d33aeeb..a433d67 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.0 Requires PHP: 7.0 -Stable tag: 1.0.4 +Stable tag: 1.0.5 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl.html @@ -52,6 +52,9 @@ The MightyShare plugin places a signed MightShare image URL onto your meta tags. == Changelog == += 1.0.5 = +* Bug fix preventing posts from showing the correct MightyShare state. + = 1.0.4 = * New template added (mighty-3). * Bug fix MightyShare not working on custom post types.