Skip to content

Commit

Permalink
Upgrade/Install: Add missing escaping function for `get_option( 'home…
Browse files Browse the repository at this point in the history
…' )` in `upgrade.php`.

Props dilipbheda.
Fixes #59199.




git-svn-id: https://develop.svn.wordpress.org/trunk@56473 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Aug 25, 2023
1 parent e0e36e6 commit 7f38f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

<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 ) :
Expand Down

0 comments on commit 7f38f68

Please sign in to comment.