From 09ddadad9ccd1fa2647b3142e503c68d3cc84868 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 3 Apr 2018 16:11:23 +0000 Subject: [PATCH] Template: Make sure the version string is correctly escaped for use in attributes. Merge of [42893] to the 3.9 branch. Built from https://develop.svn.wordpress.org/branches/3.9@42927 git-svn-id: http://core.svn.wordpress.org/branches/3.9@42757 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 56cce93c5f..e42a0e5b2e 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -2795,25 +2795,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 = 'http://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; }