diff --git a/hello.php b/hello.php index c2ba387..ba20e97 100644 --- a/hello.php +++ b/hello.php @@ -1,15 +1,17 @@ Hello, Dolly in the upper right of your admin screen on every page. Author: Matt Mullenweg -Version: 1.7.2 +Version: 1.7.3 Author URI: http://ma.tt/ +License: GPLv2 or later +License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ function hello_dolly_get_lyric() { @@ -46,7 +48,7 @@ function hello_dolly_get_lyric() { $lyrics = explode( "\n", $lyrics ); // And then randomly choose a line. - return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] ); + return wptexturize( $lyrics[ wp_rand( 0, count( $lyrics ) - 1 ) ] ); } // This just echoes the chosen line, we'll position it later. @@ -59,9 +61,9 @@ function hello_dolly() { printf( '

%s %s

', - __( 'Quote from Hello Dolly song, by Jerry Herman:', 'hello-dolly' ), - $lang, - $chosen + esc_html__( 'Quote from Hello Dolly song, by Jerry Herman:', 'hello-dolly' ), + $lang, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + esc_html( $chosen ) ); } diff --git a/readme.txt b/readme.txt index a2995db..61b158e 100644 --- a/readme.txt +++ b/readme.txt @@ -1,8 +1,10 @@ === Hello Dolly === Contributors: matt, wordpressdotorg -Stable tag: 1.7.2 -Tested up to: 6.1 +Stable tag: 1.7.3 +Tested up to: 6.6 Requires at least: 4.6 +License: GPLv2 or later +License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong.