Unnecessary post meta for post types that don’t support featured image
-
I’m sure this isn’t spesific to a plugin, but the I’m seeing this issue with WP Libre Form.
In my submissions (it’s a custom post type), I see meta key “inline_featured_image” with a value of 0. Since the post type hasn’t declared featured image support, there shouldn’t be anything related to featured images.
Fixing this should be fairly easy, just do something like this
post_type_supports(get_post_type($post_id), 'thumbnail')
in your action.While the bug isn’t severe, it’s annoying and it’s cluttering submissions. Code relevant to the post type: https://github.com/anttiviljami/wp-libre-form/blob/master/classes/class-cpt-wplf-submission.php#L41-L74
I
grep
‘d my whole project directory and the only files pointing to that string belong to SVG Support.
- The topic ‘Unnecessary post meta for post types that don’t support featured image’ is closed to new replies.