Permalink
Browse files

Remove "This theme supports widgets..." from the theme activation not…

…ice. props ryanimel. fixes #19787.

git-svn-id: http://core.svn.wordpress.org/trunk@21972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent f45dcfa commit 93ff54b4f2d5e46d41c7a65ef9fb84be549f121e @nacin nacin committed Sep 24, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 wp-admin/themes.php
View
@@ -108,10 +108,8 @@
<div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
<?php elseif ( isset($_GET['activated']) ) :
if ( isset( $_GET['previewed'] ) ) { ?>
- <div id="message2" class="updated"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>.' ), home_url( '/' ) ); ?></p></div>
- <?php } elseif ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) && current_user_can('edit_theme_options') ) { ?>
-<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
- } else { ?>
+ <div id="message2" class="updated"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div>
+ <?php } else { ?>
<div id="message2" class="updated"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php
}
elseif ( isset($_GET['deleted']) ) : ?>

0 comments on commit 93ff54b

Please sign in to comment.