commit | d0cbebc5f0bbece376892690f0384d5687b9172e | [log] [tgz] |
---|---|---|
author | jond@apple.com <jond@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Fri Jan 17 01:30:05 2020 +0000 |
committer | jond@apple.com <jond@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Fri Jan 17 01:30:05 2020 +0000 |
tree | 93f8748c95a9c2462b8677f106e08379d08fe55a | |
parent | 4d3868a11a0710b73ba82bf4eac00028c69f0595 [diff] |
Ensure full URLs for relative path images for social meta data https://bugs.webkit.org/show_bug.cgi?id=206382 Reviewed by Devin Rousso. * wp-content/plugins/social-meta.php: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@254731 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Websites/webkit.org/ChangeLog b/Websites/webkit.org/ChangeLog index 1854bc6..f6452e9 100644 --- a/Websites/webkit.org/ChangeLog +++ b/Websites/webkit.org/ChangeLog
@@ -1,5 +1,14 @@ 2020-01-16 Jon Davis <jond@apple.com> + Ensure full URLs for relative path images for social meta data + https://bugs.webkit.org/show_bug.cgi?id=206382 + + Reviewed by Devin Rousso. + + * wp-content/plugins/social-meta.php: + +2020-01-16 Jon Davis <jond@apple.com> + Add support for categories and custom post types to the social meta plugin https://bugs.webkit.org/show_bug.cgi?id=206327
diff --git a/Websites/webkit.org/wp-content/plugins/social-meta.php b/Websites/webkit.org/wp-content/plugins/social-meta.php index 1dd728c..d3f5ea7 100644 --- a/Websites/webkit.org/wp-content/plugins/social-meta.php +++ b/Websites/webkit.org/wp-content/plugins/social-meta.php
@@ -73,6 +73,9 @@ $published_time = get_the_time('c'); $modified_time = get_the_modified_date('c'); } + + if ($image_url[0] === '/') + $image_url = get_home_url(null, $image_url); ?> <!-- Schema.org markup -->