summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-11-20 16:50:38 -0500
committerAnthony G. Basile <blueness@gentoo.org>2017-11-20 16:50:38 -0500
commit159ec5c8052e1d061a430893a4525629849e2589 (patch)
tree6613f22dab82e5c683141f53b1281e18510896ef /plugins/jetpack/class.jetpack-twitter-cards.php
parentUpdate akismet 4.0.1 (diff)
downloadblogs-gentoo-159ec5c8052e1d061a430893a4525629849e2589.tar.gz
blogs-gentoo-159ec5c8052e1d061a430893a4525629849e2589.tar.bz2
blogs-gentoo-159ec5c8052e1d061a430893a4525629849e2589.zip
Update jetpack 5.5
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
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.