Changed
if ( $from_post_body ) { // Theme does not support post-thumbnails, or post does not have assigned thumbnail
$debug .= 'Getting image from post body;';
$wud = wp_upload_dir();
preg_match_all( '|<img.*?src=[\'"](' . $wud['baseurl'] . '.*?)[\'"].*?>|i', $post->post_content, $matches ); // searching for the first uploaded image in text
to
if ( $from_post_body ) { // Theme does not support post-thumbnails, or post does not have assigned thumbnail
$debug .= 'Skipping getting image from post body and falling back to default;';
$url = get_option( 'relpoststh_default_image', $this->default_image );
in wp-content/plugins/related-posts-thumbnails/related-posts-thumbnails.php – line 314.
-
This reply was modified 8 years ago by
rtfrisk.
-
This reply was modified 8 years ago by
rtfrisk.