Skip to content

Commit

Permalink
1.3.15
Browse files Browse the repository at this point in the history
  • Loading branch information
someguy9 committed May 26, 2024
1 parent ebe00b4 commit 100ffab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 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.3.14
* Version: 1.3.15
* 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.3.14' );
define( 'MIGHTYSHARE_VERSION', '1.3.15' );
define( 'MIGHTYSHARE_DIR_URL', plugin_dir_url( __FILE__ ) );
define( 'MIGHTYSHARE_DIR_URI', plugin_dir_path( __FILE__ ) );

Expand Down Expand Up @@ -1035,10 +1035,10 @@ public function get_mightyshare_post_details() {
}

if ( $wp_query->is_archive && ! empty( $template_parts ) ) {
$returned_template_parts['ID'] = $template_parts->term_id;
$returned_template_parts['title'] = $template_parts->name;
$returned_template_parts['description'] = $template_parts->category_description;
$returned_template_parts['type'] = $template_parts->taxonomy;
$returned_template_parts['ID'] = isset($template_parts->term_id) ? $template_parts->term_id : '';
$returned_template_parts['title'] = isset($template_parts->name) ? $template_parts->name : '';
$returned_template_parts['description'] = isset($template_parts->category_description) ? $template_parts->category_description : '';
$returned_template_parts['type'] = isset($template_parts->taxonomy) ? $template_parts->taxonomy : '';
$returned_template_parts['object_type'] = 'taxonomies';
}

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.5
Requires PHP: 7.4
Stable tag: 1.3.14
Stable tag: 1.3.15
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html

Expand Down Expand Up @@ -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.15 =
* Bug fix for PHP warning.

= 1.3.14 =
* Bug fix for PHP warning.

Expand Down

0 comments on commit 100ffab

Please sign in to comment.