[Plugin: Add Link to Facebook] Redundant metatags on homepage
-
I have unchecked the radio button for “Use Open Graph protocol:” but even so the homepage gets three Facebook-specific metatags added to it because of this parameter in add-link-to-facebook-class.php:
else if (is_home())
{$charset = get_bloginfo(‘charset’);$title = html_entity_decode(get_bloginfo(‘title’), ENT_QUOTES, get_bloginfo(‘charset’));
echo ‘<meta property=”og:title” content=”‘ . htmlspecialchars($title, ENT_QUOTES, $charset) . ‘” />’ . PHP_EOL;
echo ‘<meta property=”og:type” content=”blog” />’ . PHP_EOL;
echo ‘<meta property=”og:url” content=”‘ . get_home_url() . ‘” />’ . PHP_EOL;}}Is there any way to have this if clause affected by the “Use Open Graph protocol:” radio button? I already have OGP taken care of on my site and do not need it on the homepage.
- The topic ‘[Plugin: Add Link to Facebook] Redundant metatags on homepage’ is closed to new replies.