WordPress.org

Make WordPress Core

Ticket #19787: 19787_optionb.diff

File 19787_optionb.diff, 1.3 KB (added by ryanimel, 3 years ago)

Implementing option B, also adding a missing period to the message.

  • wp-admin/themes.php

     
    109109<?php elseif ( isset($_GET['activated']) ) : 
    110110                if ( isset( $_GET['previewed'] ) ) { ?> 
    111111                <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 { ?> 
    115 <div id="message2" class="updated"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php 
     112                <?php } else { ?> 
     113<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']) ) : ?> 
    118116<div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div>