Bug & Fix: Manually setting featured image after plugin install
-
Great, simple plugin! Does exactly what it needs to do without any fluff.
I came across an issue with this plugin while trying to manually set a post’s Featured Image after installation. The manually set Featured Image would not save properly and resulted in “phantom” images in the media gallery (image filename in database, but no corresponding image file of that name, resulting in a “broken image” grey box in the media gallery that was assigned as the Featured Image).
I solved the problem by changing line 14 from
if (isset($post_id)) {
to
if (isset($post_id) && !has_post_thumbnail($post_id)) {
The plugin now works flawlessly. ?? Please consider an update that incorporates this fix!
- The topic ‘Bug & Fix: Manually setting featured image after plugin install’ is closed to new replies.