From 768f3030048445cbda39626d0e0a572a27273606 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Tue, 3 Apr 2018 14:58:48 +0000 Subject: [PATCH] Template: Make sure the version string is correctly escaped for use in attributes. git-svn-id: https://develop.svn.wordpress.org/trunk@42893 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index b8f90b85bb..57a7b675dc 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -4249,25 +4249,25 @@ function get_the_generator( $type = '' ) { switch ( $type ) { case 'html': - $gen = ''; + $gen = ''; break; case 'xhtml': - $gen = ''; + $gen = ''; break; case 'atom': - $gen = 'WordPress'; + $gen = 'WordPress'; break; case 'rss2': - $gen = 'https://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . ''; + $gen = '' . esc_url_raw( 'https://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) ) . ''; break; case 'rdf': - $gen = ''; + $gen = ''; break; case 'comment': - $gen = ''; + $gen = ''; break; case 'export': - $gen = ''; + $gen = ''; break; }