Found data integrity issue, proposing a fix
-
First: thanks a ton for this plugin, it’s awesome! I ran into what might be an edge case but found a fix that I’d like to propose.
Long story short: I ran into an issue where CFS data wasn’t being properly retrieved after I made a call to
get_category_meta()when there was no data to retrieve. After stepping through the code I found my way into thegetPost()method of theVirtualPostsclass. It’s using$postas a variable name, and callingcurrent($post)was wreaking havoc on the rest of my page load.Switching all occurrences of
$postto$postreffixed the issue for me, lines 58 and 67 oflib/VirtualPosts.php. I’m wondering if you can take a look and let me know if this change can be made?
The topic ‘Found data integrity issue, proposing a fix’ is closed to new replies.