Ticket #16707: themes-patch.diff
File themes-patch.diff, 1.7 KB (added by , 14 years ago) |
---|
-
themes.php
82 82 <?php echo esc_html( $title ); ?> 83 83 <?php endif; ?> 84 84 </h2> 85 85 <?php 86 if((isset($ct->template_dir) && $ct->template_dir) || (isset($wp_list_table->items) && $wp_list_table->items)) { 87 ?> 86 88 <h3><?php _e('Current Theme'); ?></h3> 89 <?php if(isset($ct->template_dir) && $ct->template_dir){ ?> 87 90 <div id="current-theme"> 88 91 <?php if ( $ct->screenshot ) : ?> 89 92 <img src="<?php echo $ct->theme_root_uri . '/' . $ct->stylesheet . '/' . $ct->screenshot; ?>" alt="<?php _e('Current theme preview'); ?>" /> … … 130 133 <?php theme_update_available($ct); ?> 131 134 132 135 </div> 133 136 <?php } else { ?> 137 <p><?php _e('Your current theme seems to be removed or misplaced. Please choose from the available themes below to restore functionality to your WordPress installation.'); ?></p> 138 <?php } ?> 134 139 <br class="clear" /> 135 140 <?php 136 141 if ( ! current_user_can( 'switch_themes' ) ) { … … 200 205 <?php $wp_list_table->display(); ?> 201 206 202 207 </form> 208 <?php 209 } else { 210 ?> 211 <p><?php sprintf(_e('Currently there are no themes installed which probably means that your WordPress installation is broken. Please install one to restore functionality. Click on the “Install Themes” tab and you will be able to browse or search for themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are licensed under the GNU General Public License, version 2, just like WordPress. Oh, and they’re free!'), 'http://wordpress.org/extend/themes/'); ?></p> 212 <?php 213 } 214 ?> 203 215 <br class="clear" /> 204 216 205 217 <?php