Patch 128-02: Fix issue where thumbnails don't link to post after upgrading to WP 4.7
1 Attachment(s)
WordPress 4.7 changed some code causing the link to a post from a thumbnail to stop working. the following patch will fix this issue.
Edit /montezuma/includes/thumb.php and change line 21 from HTML Code:
$id = get_the_id() . '_' . $width . '_' . $height . '_' . ( $crop === FALSE ? '0' : '1' ); HTML Code:
$post_id = get_the_id(); HTML Code:
$this_thumb = '<a href="'.get_permalink( $id ).'">'.$this_thumb.'</a>'; HTML Code:
$this_thumb = '<a href="'.get_permalink($post_id).'">'.$this_thumb.'</a>'; |
All times are GMT -6. The time now is 06:15 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.