Changeset 11539 for trunk/wp-admin/themes.php
- Timestamp:
- 06/10/2009 06:55:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r11525 r11539 130 130 <div id="current-theme"> 131 131 <?php if ( $ct->screenshot ) : ?> 132 <img src="<?php echo WP_CONTENT_URL . $ct->stylesheet_dir . '/' . $ct->screenshot; ?>" alt="<?php _e('Current theme preview'); ?>" />132 <img src="<?php echo content_url($ct->stylesheet_dir . '/' . $ct->screenshot); ?>" alt="<?php _e('Current theme preview'); ?>" /> 133 133 <?php endif; ?> 134 134 <h4><?php … … 201 201 $template_dir = $themes[$theme_name]['Template Dir']; 202 202 $parent_theme = $themes[$theme_name]['Parent Theme']; 203 $preview_link = esc_url( get_option('home') . '/'); 203 $preview_link = esc_url(get_option('home') . '/'); 204 if ( is_ssl() ) 205 $preview_link = str_replace( 'http://', 'https://', $preview_link ); 204 206 $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), $preview_link ) ); 205 207 $preview_text = esc_attr( sprintf( __('Preview of “%s”'), $title ) ); … … 219 221 <a href="<?php echo $preview_link; ?>" class="<?php echo $thickbox_class; ?> screenshot"> 220 222 <?php if ( $screenshot ) : ?> 221 <img src="<?php echo WP_CONTENT_URL . $stylesheet_dir . '/' . $screenshot; ?>" alt="" />223 <img src="<?php echo content_url($stylesheet_dir . '/' . $screenshot); ?>" alt="" /> 222 224 <?php endif; ?> 223 225 </a>
Note: See TracChangeset
for help on using the changeset viewer.