diff options
author | Yury German <blueknight@gentoo.org> | 2016-04-26 00:51:29 -0400 |
---|---|---|
committer | Yury German <blueknight@gentoo.org> | 2016-04-26 00:51:29 -0400 |
commit | da108071d5fb8098d567616db234caacf55a7b51 (patch) | |
tree | 7a2dc3a0589b74c57ab0d0c412ce733069307c50 /plugins/jetpack/modules/publicize/enhanced-open-graph.php | |
parent | Update plugin akismet to 3.1.10 (diff) | |
download | blogs-gentoo-da108071d5fb8098d567616db234caacf55a7b51.tar.gz blogs-gentoo-da108071d5fb8098d567616db234caacf55a7b51.tar.bz2 blogs-gentoo-da108071d5fb8098d567616db234caacf55a7b51.zip |
Adding jetpack-4.0.2
Diffstat (limited to 'plugins/jetpack/modules/publicize/enhanced-open-graph.php')
-rw-r--r-- | plugins/jetpack/modules/publicize/enhanced-open-graph.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/publicize/enhanced-open-graph.php b/plugins/jetpack/modules/publicize/enhanced-open-graph.php index 207756c1..eb9f7e73 100644 --- a/plugins/jetpack/modules/publicize/enhanced-open-graph.php +++ b/plugins/jetpack/modules/publicize/enhanced-open-graph.php @@ -1,6 +1,11 @@ <?php -if ( ! class_exists( 'Jetpack_Media_Summary' ) && defined('IS_WPCOM') && IS_WPCOM ) - include WP_CONTENT_DIR . '/lib/class.wpcom-media-summary.php'; +if ( ! class_exists( 'Jetpack_Media_Summary' ) ) { + if ( defined('IS_WPCOM') && IS_WPCOM ) { + include WP_CONTENT_DIR . '/lib/class.wpcom-media-summary.php'; + } else { + jetpack_require_lib( 'class.media-summary' ); + } +} /** * Better OG Image Tags for Image Post Formats |