Skip to content

Commit

Permalink
Fix display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
someguy9 committed May 19, 2022
1 parent 57b64ec commit 77856fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mightyshare.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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__ ) );

Expand Down Expand Up @@ -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)';
}
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 77856fd

Please sign in to comment.