Changeset 21069 for trunk/wp-admin/themes.php
- Timestamp:
- 06/12/2012 06:39:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r21010 r21069 93 93 ?> 94 94 95 <?php if ( ! validate_current_theme() ) : ?>96 <div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>97 <?php elseif ( isset($_GET['activated']) ) :98 if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) && current_user_can('edit_theme_options') ) { ?>99 <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><?php100 } else { ?>101 <div id="message2" class="updated"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php102 }103 elseif ( isset($_GET['deleted']) ) : ?>104 <div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div>105 <?php endif; ?>106 107 95 <div class="wrap"><?php 108 96 screen_icon(); … … 115 103 </h2> 116 104 <?php 105 if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?> 106 <div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div> 107 <?php elseif ( isset($_GET['activated']) ) : 108 if ( isset( $_GET['previewed'] ) ) { ?> 109 <div id="message2" class="updated"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>.' ), home_url( '/' ) ); ?></p></div> 110 <?php } elseif ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) && current_user_can('edit_theme_options') ) { ?> 111 <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 112 } else { ?> 113 <div id="message2" class="updated"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php 114 } 115 elseif ( isset($_GET['deleted']) ) : ?> 116 <div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div> 117 <?php 118 endif; 117 119 118 120 $ct = wp_get_theme();
Note: See TracChangeset
for help on using the changeset viewer.