WordPress.org

Make WordPress Core

Ticket #19787: 19787_optionb-2.diff

File 19787_optionb-2.diff, 1.3 KB (added by lessbloat, 3 years ago)
  • wp-admin/themes.php

     
    108108<div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div> 
    109109<?php elseif ( isset($_GET['activated']) ) : 
    110110                if ( isset( $_GET['previewed'] ) ) { ?> 
    111                 <div id="message2" class="updated"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>.' ), home_url( '/' ) ); ?></p></div> 
    112                 <?php } elseif ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) && current_user_can('edit_theme_options') ) { ?> 
    113 <div id="message2" class="updated"><p><?php printf( __('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings</a> screen to configure them.'), admin_url( 'widgets.php' ) ); ?></p></div><?php 
    114                 } else { ?> 
     111                <div id="message2" class="updated"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div> 
     112                <?php } else { ?> 
    115113<div id="message2" class="updated"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php 
    116114                } 
    117115        elseif ( isset($_GET['deleted']) ) : ?>