Make WordPress Core

Ticket #56145: 56145_1.patch

File 56145_1.patch, 1.2 KB (added by hurayraiit, 2 years ago)
  • src/wp-admin/themes.php

    diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php
    index ba897614db..6dcc909252 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                ?>
    273                 <div id="message2" class="updated notice is-dismissible"><p><?php _e( 'New theme activated.' ); ?> <a href="<?php echo home_url( '/' ); ?>"><?php _e( 'Visit site' ); ?></a></p></div>
     273                <div id="message2" class="updated notice is-dismissible"><p><?php _e( 'New theme activated.' ); ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php _e( 'Visit site' ); ?></a></p></div>
    274274                <?php
    275275        }
    276276} elseif ( isset( $_GET['deleted'] ) ) {