Skip to content

Commit 100ffab

Browse files
committed
1.3.15
1 parent ebe00b4 commit 100ffab

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

mightyshare.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: MightyShare
44
* Plugin URI: https://mightyshare.io/wordpress/
55
* Description: Automatically generate social share preview images with MightyShare!
6-
* Version: 1.3.14
6+
* Version: 1.3.15
77
* Text Domain: mightyshare
88
* Author: MightyShare
99
* Author URI: https://mightyshare.io
@@ -13,7 +13,7 @@
1313
exit; // Exit if accessed directly.
1414
}
1515

16-
define( 'MIGHTYSHARE_VERSION', '1.3.14' );
16+
define( 'MIGHTYSHARE_VERSION', '1.3.15' );
1717
define( 'MIGHTYSHARE_DIR_URL', plugin_dir_url( __FILE__ ) );
1818
define( 'MIGHTYSHARE_DIR_URI', plugin_dir_path( __FILE__ ) );
1919

@@ -1035,10 +1035,10 @@ public function get_mightyshare_post_details() {
10351035
}
10361036

10371037
if ( $wp_query->is_archive && ! empty( $template_parts ) ) {
1038-
$returned_template_parts['ID'] = $template_parts->term_id;
1039-
$returned_template_parts['title'] = $template_parts->name;
1040-
$returned_template_parts['description'] = $template_parts->category_description;
1041-
$returned_template_parts['type'] = $template_parts->taxonomy;
1038+
$returned_template_parts['ID'] = isset($template_parts->term_id) ? $template_parts->term_id : '';
1039+
$returned_template_parts['title'] = isset($template_parts->name) ? $template_parts->name : '';
1040+
$returned_template_parts['description'] = isset($template_parts->category_description) ? $template_parts->category_description : '';
1041+
$returned_template_parts['type'] = isset($template_parts->taxonomy) ? $template_parts->taxonomy : '';
10421042
$returned_template_parts['object_type'] = 'taxonomies';
10431043
}
10441044

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: Social Preview, Open Graph, Social Media, Twitter Card, Open Graph Images
55
Requires at least: 5.4
66
Tested up to: 6.5
77
Requires PHP: 7.4
8-
Stable tag: 1.3.14
8+
Stable tag: 1.3.15
99
License: GPLv3
1010
License URI: http://www.gnu.org/licenses/gpl.html
1111

@@ -70,6 +70,9 @@ If you are using an SEO plugin be sure to have a default image set for the type
7070

7171
== Changelog ==
7272

73+
= 1.3.15 =
74+
* Bug fix for PHP warning.
75+
7376
= 1.3.14 =
7477
* Bug fix for PHP warning.
7578

0 commit comments

Comments
 (0)