Ticket #10080: 10080.2.patch
File 10080.2.patch, 1.6 KB (added by , 15 years ago) |
---|
-
themes.php
129 129 <h3><?php _e('Current Theme'); ?></h3> 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 135 135 /* translators: 1: theme title, 2: theme version, 3: theme author */ … … 200 200 $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir']; 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(preg_replace("/^https?\:/",'',get_option('home')).'/'); 204 204 $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), $preview_link ) ); 205 205 $preview_text = esc_attr( sprintf( __('Preview of “%s”'), $title ) ); 206 206 $tags = $themes[$theme_name]['Tags']; … … 218 218 ?> 219 219 <a href="<?php echo $preview_link; ?>" class="<?php echo $thickbox_class; ?> screenshot"> 220 220 <?php if ( $screenshot ) : ?> 221 <img src="<?php echo WP_CONTENT_URL . $stylesheet_dir . '/' . $screenshot; ?>" alt="" />221 <img src="<?php echo content_url($stylesheet_dir . '/' . $screenshot); ?>" alt="" /> 222 222 <?php endif; ?> 223 223 </a> 224 224 <h3><?php