summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/class.jetpack-twitter-cards.php')
-rw-r--r--plugins/jetpack/class.jetpack-twitter-cards.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/jetpack/class.jetpack-twitter-cards.php b/plugins/jetpack/class.jetpack-twitter-cards.php
index 5934dce2..87841867 100644
--- a/plugins/jetpack/class.jetpack-twitter-cards.php
+++ b/plugins/jetpack/class.jetpack-twitter-cards.php
@@ -38,6 +38,12 @@ class Jetpack_Twitter_Cards {
if ( ! is_singular() || ! empty( $og_tags['twitter:card'] ) ) {
return $og_tags;
}
+
+ $the_title = get_the_title();
+ if ( ! $the_title ) {
+ $the_title = get_bloginfo( 'name' );
+ }
+ $og_tags['twitter:text:title'] = $the_title;
/*
* The following tags only apply to single pages.