public function check_open_graph()
{
if (in_array('publicize', Jetpack::get_active_modules()) || in_array('sharedaddy', Jetpack::get_active_modules())) {
add_filter('jetpack_enable_open_graph', '__return_true', 0);
}
$active_plugins = self::get_active_plugins();
if (!empty($active_plugins)) {
foreach ($this->open_graph_conflicting_plugins as $plugin) {
if (in_array($plugin, $active_plugins)) {
add_filter('jetpack_enable_open_graph', '__return_false', 99);
break;
}
}
}
/**
* Allow the addition of Open Graph Meta Tags to all pages.
*
* @since 2.0.3
*
* @param bool false Should Open Graph Meta tags be added. Default to false.
*/
if (apply_filters('jetpack_enable_open_graph', false)) {
require_once JETPACK__PLUGIN_DIR . 'functions.opengraph.php';
}
}