diff --git a/readme.txt b/readme.txt
index a471aac..68c772a 100644
--- a/readme.txt
+++ b/readme.txt
@@ -30,6 +30,8 @@ Display to Post Author Information Box on bottom of the contents.
== Changelog ==
+[ Bug fix ] Fix profile image warning
+
= 1.25.0 =
[ Add function ] Add a feature that allows specifying the tag.
diff --git a/view.post-author.php b/view.post-author.php
index 8fb9993..506441b 100644
--- a/view.post-author.php
+++ b/view.post-author.php
@@ -35,7 +35,9 @@ public static function pad_get_author_profile() {
$profile_image_id = get_the_author_meta( 'user_profile_image' );
if ( $profile_image_id ) {
$profile_image_src = wp_get_attachment_image_src( $profile_image_id, 'thumbnail' );
- $profile_unit .= '
';
+ }
+ if ( isset( $profile_image_src ) && is_array( $profile_image_src ) ) {
+ $profile_unit .= '
';
} else {
$profile_unit .= get_avatar( get_the_author_meta( 'email' ), 100 );
}
@@ -189,7 +191,7 @@ public static function pad_get_author_box( $layout = 'normal' ) {
$author_unit = '';
if ( 'author_archive' !== $layout ) {
- $author_unit .= '<'. esc_html( $options['author_box_title_tag'] ) .' class="padSectionTitle">' . esc_html( $options['author_box_title'] ) . ''. esc_html( $options['author_box_title_tag'] ) .'>';
+ $author_unit .= '<' . esc_html( $options['author_box_title_tag'] ) . ' class="padSectionTitle">' . esc_html( $options['author_box_title'] ) . '' . esc_html( $options['author_box_title_tag'] ) . '>';
}
$author_unit .= self::pad_get_author_profile();