Upgrade/Install: Add missing escaping function for get_option( 'home' ) in upgrade.php.

Props dilipbheda.
Fixes #59199.




git-svn-id: https://develop.svn.wordpress.org/trunk@56473 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2023-08-25 05:42:43 +00:00
parent e0e36e63fe
commit 7f38f687c4

View File

@ -72,7 +72,7 @@ header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option
<h1><?php _e( 'No Update Required' ); ?></h1>
<p><?php _e( 'Your WordPress database is already up to date!' ); ?></p>
<p class="step"><a class="button button-large" href="<?php echo get_option( 'home' ); ?>/"><?php _e( 'Continue' ); ?></a></p>
<p class="step"><a class="button button-large" href="<?php echo esc_url( get_option( 'home' ) ); ?>/"><?php _e( 'Continue' ); ?></a></p>
<?php
elseif ( ! $php_compat || ! $mysql_compat ) :