Title: [254731] trunk/Websites/webkit.org
Revision
254731
Author
[email protected]
Date
2020-01-16 17:30:05 -0800 (Thu, 16 Jan 2020)

Log Message

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:

Modified Paths

Diff

Modified: trunk/Websites/webkit.org/ChangeLog (254730 => 254731)


--- trunk/Websites/webkit.org/ChangeLog	2020-01-17 01:24:35 UTC (rev 254730)
+++ trunk/Websites/webkit.org/ChangeLog	2020-01-17 01:30:05 UTC (rev 254731)
@@ -1,5 +1,14 @@
 2020-01-16  Jon Davis  <[email protected]>
 
+        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  <[email protected]>
+
         Add support for categories and custom post types to the social meta plugin
         https://bugs.webkit.org/show_bug.cgi?id=206327
 

Modified: trunk/Websites/webkit.org/wp-content/plugins/social-meta.php (254730 => 254731)


--- trunk/Websites/webkit.org/wp-content/plugins/social-meta.php	2020-01-17 01:24:35 UTC (rev 254730)
+++ trunk/Websites/webkit.org/wp-content/plugins/social-meta.php	2020-01-17 01:30:05 UTC (rev 254731)
@@ -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 -->
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to