Make WordPress Core

Ticket #56146: 56146.patch

File 56146.patch, 707 bytes (added by msnewas, 3 years ago)

Thanks for bringing it up. this should do the job.

  • src/wp-admin/themes.php

    diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php
    index ba897614db..14e6892f88 100644
    a b if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) { 
    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'] ) ) {