I like your plugin very much, but it has one bug
-
line 154 should be
$image_html = '<a href="' . $edit_post_link . '">'. get_the_post_thumbnail($post->ID, $size, array('style' => $style, 'class' => $child) ) . '</a>';
instead of
$image_html = '<a href="' . $edit_post_link . '">'. the_post_thumbnail( $size, array('style' => $style, 'class' => $child) ) . '</a>';
The original code has echoed the thumbnail right away, while the new one returns it. This bug causes the edit links to be out of place.
??All the best,
Chief
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘I like your plugin very much, but it has one bug’ is closed to new replies.