Open Graph Bug Report
-
Hi, I found a bug related to Open Graph
I disabled all extensions locally to be completely sure it’s not an extension, I only have the Youzify plugin installed. All pages have residual Open Graph information in code, the bug looks something like this:
<!-- Youzify Open Graph Tags --> <meta property="twitter:card" content="summary_large_image"> <meta property="og:type" content="profile"> <meta property="og:url" content=""> <meta property="og:description" content="description on wodpress dashboard"> <meta property="twitter:description" content="description on wodpress dashboard"> <!-- End of Youzify Open Graph Tags -->
If I’m not mistaken, this is on all installations for all users. It’s not a serious bug, but it can interfere with the Open Graph information that we really want to display
To fix the bug you have to modify the following file:
\wp-content\plugins\youzify\includes\public\core\class-youzify-profile.php
In my case, I have emptied the open_graph() function. It’s near line 368
Reviewing the code it looks fine, maybe in some sense it’s more of a BuddyPress problem than Youzify. Or maybe BuddyPress no longer works with bp_is_single_activity()
In any case, by tweaking the open_graph() function in the class-youzify-profile.php file the bug can be fixed
I’ve tested the bug and the solution in different versions of the plugin (including the current one)
It would be great if you could consider this in future patches
Best regards
- You must be logged in to reply to this topic.