diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 3e7992d0bb..faed7c5b3a 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -2255,25 +2255,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; } return apply_filters( "get_the_generator_{$type}", $gen, $type );