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 |
|
if ( ! class_exists( 'Jetpack_Media_Summary' ) ) { |
68 |
|
jetpack_require_lib( 'class.media-summary' ); |
modules/publicize/enhanced-open-graph.php 1 location
|
@@ 2-8 (lines=7) @@
|
1 |
|
<?php |
2 |
|
if ( ! class_exists( 'Jetpack_Media_Summary' ) ) { |
3 |
|
if ( defined('IS_WPCOM') && IS_WPCOM ) { |
4 |
|
include WP_CONTENT_DIR . '/lib/class.wpcom-media-summary.php'; |
5 |
|
} else { |
6 |
|
jetpack_require_lib( 'class.media-summary' ); |
7 |
|
} |
8 |
|
} |
9 |
|
|
10 |
|
/** |
11 |
|
* Better OG Image Tags for Image Post Formats |