Reply To: this plugin forcing image to square

#4823

Ernest Marcinko
Keymaster

Hi!

It might be related to the newest version of the wordpress only. I think I have a solution though.

Open up the wp-content/plugins/related-posts-pro/includes/bfi_thumb.php file and go to lines 773-775, where you should see this:

if ( ! is_admin() || (defined( 'DOING_AJAX' ) && DOING_AJAX) ) {
	add_filter( 'image_resize_dimensions', 'bfi_image_resize_dimensions', 10, 5 );
}

remove those lines, or comment it out like this:

/*if ( ! is_admin() || (defined( 'DOING_AJAX' ) && DOING_AJAX) ) {
	add_filter( 'image_resize_dimensions', 'bfi_image_resize_dimensions', 10, 5 );
}*/

Let me know if it changes anything.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)