Make WordPress Core

Ticket #56145: 56145.patch

File 56145.patch, 771 bytes (added by hurayraiit, 2 years ago)

Good finding! This should do the trick. :-)

  • src/wp-admin/themes.php

    diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php
    index ba897614db..7782500e92 100644
    a b if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) { 
    266266} elseif ( isset( $_GET['activated'] ) ) {
    267267        if ( isset( $_GET['previewed'] ) ) {
    268268                ?>
    269                 <div id="message2" class="updated notice is-dismissible"><p><?php _e( 'Settings saved and theme activated.' ); ?> <a href="<?php echo home_url( '/' ); ?>"><?php _e( 'Visit site' ); ?></a></p></div>
     269                <div id="message2" class="updated notice is-dismissible"><p><?php _e( 'Settings saved and theme activated.' ); ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php _e( 'Visit site' ); ?></a></p></div>
    270270                <?php
    271271        } else {
    272272                ?>