[Reviews] Extraneous metadata rows added for every post type #887
Labels
good first issue
If you're a first time contributor this is a good issue for you!
hacktoberfest
PRs for this issue count towards Hacktoberfest contributions!
help wanted
Looking for contributors to assist with this issue
Type: Bug
Bugs and errors
Milestone
The review metadata saving is hooked into saved posts and no post type is checked in
lifterlms/includes/admin/class.llms.admin.reviews.php
Line 32 in cdbee2b
lifterlms/includes/admin/class.llms.admin.reviews.php
Lines 159 to 187 in cdbee2b
Additionally, even for posts where there are no reviews (metadata value is empty), the metadata is saved anyway leading to useless rows in the postmeta table. This example is of a certificate:
The text was updated successfully, but these errors were encountered: