class.jetpack-twitter-cards.php 1 location
|
@@ 63-65 (lines=3) @@
|
| 60 |
|
|
| 61 |
|
// Only proceed with media analysis if a featured image has not superseded it already. |
| 62 |
|
if ( empty( $og_tags['twitter:image'] ) && empty( $og_tags['twitter:image:src'] ) ) { |
| 63 |
|
if ( ! class_exists( 'Jetpack_Media_Summary' ) && defined('IS_WPCOM') && IS_WPCOM ) { |
| 64 |
|
include( WP_CONTENT_DIR . '/lib/class.wpcom-media-summary.php' ); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
// Test again, class should already be auto-loaded in Jetpack. |
| 68 |
|
// If not, skip extra media analysis and stick with a summary card |
modules/publicize/enhanced-open-graph.php 1 location
|
@@ 2-3 (lines=2) @@
|
| 1 |
|
<?php |
| 2 |
|
if ( ! class_exists( 'Jetpack_Media_Summary' ) && defined('IS_WPCOM') && IS_WPCOM ) |
| 3 |
|
include WP_CONTENT_DIR . '/lib/class.wpcom-media-summary.php'; |
| 4 |
|
|
| 5 |
|
/** |
| 6 |
|
* Better OG Image Tags for Image Post Formats |