Title: [213668] trunk/Websites/webkit.org
- Revision
- 213668
- Author
- [email protected]
- Date
- 2017-03-09 14:07:46 -0800 (Thu, 09 Mar 2017)
Log Message
Prevent HTML in rich link previews
https://bugs.webkit.org/show_bug.cgi?id=169435
Reviewed by Tim Horton.
* wp-content/plugins/social-meta.php:
Modified Paths
Diff
Modified: trunk/Websites/webkit.org/ChangeLog (213667 => 213668)
--- trunk/Websites/webkit.org/ChangeLog 2017-03-09 21:58:46 UTC (rev 213667)
+++ trunk/Websites/webkit.org/ChangeLog 2017-03-09 22:07:46 UTC (rev 213668)
@@ -1,3 +1,12 @@
+2017-03-09 Jon Davis <[email protected]>
+
+ Prevent HTML in rich link previews
+ https://bugs.webkit.org/show_bug.cgi?id=169435
+
+ Reviewed by Tim Horton.
+
+ * wp-content/plugins/social-meta.php:
+
2017-03-03 Manuel Rego Casasnovas <[email protected]>
Unreviewed, minor updates on CSS Grid Layout examples.
Modified: trunk/Websites/webkit.org/wp-content/plugins/social-meta.php (213667 => 213668)
--- trunk/Websites/webkit.org/wp-content/plugins/social-meta.php 2017-03-09 21:58:46 UTC (rev 213667)
+++ trunk/Websites/webkit.org/wp-content/plugins/social-meta.php 2017-03-09 22:07:46 UTC (rev 213668)
@@ -9,7 +9,7 @@
add_action('wp_head', function() {
- $title = get_the_title();
+ $title = the_title_attribute('echo=0');
$description = get_the_excerpt();
$type = 'article';
Modified: trunk/Websites/webkit.org/wp-content/themes/webkit/functions.php (213667 => 213668)
--- trunk/Websites/webkit.org/wp-content/themes/webkit/functions.php 2017-03-09 21:58:46 UTC (rev 213667)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/functions.php 2017-03-09 22:07:46 UTC (rev 213668)
@@ -101,7 +101,7 @@
add_filter('the_title', function( $title ) {
if ( is_admin() ) return $title;
- $title = str_replace(": ", ":<br>", $title);
+ $title = str_replace(": ", ": <br>", $title);
return $title;
});
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes