Bug : bad POST_ID
-
hi!
in the file wpv_voting.php the functionwpv_voting_get_display_vote()gets$postIDas an argument. Unfortunately, the function’s code doesn’t use this id. It rather uses wordpress loop functions asget_the_id()orget_the_author_meta(). In my case, those functions don’t return the correct value. I had to replace all the occurrences ofget_the_id()by$postIDandget_the_author_meta()by$the_post = get_post($postID); $author_ID = $the_post->post_author;
The topic ‘Bug : bad POST_ID’ is closed to new replies.