Fix preview for theme installer. see #8652

git-svn-id: https://develop.svn.wordpress.org/trunk@10590 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-02-18 21:55:00 +00:00
parent 5e078f8814
commit dfc5340e6a
6 changed files with 28 additions and 23 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ foreach ( $cols as $col => $theme_name ) {
$activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template);
$activate_text = attribute_escape( sprintf( __('Activate "%s"'), $title ) );
?>
<a href="<?php echo $activate_link; ?>" class="<?php echo $thickbox_class; ?> screenshot">
<a href="<?php echo $preview_link; ?>" class="<?php echo $thickbox_class; ?> screenshot">
<?php if ( $screenshot ) : ?>
<img src="<?php echo WP_CONTENT_URL . $stylesheet_dir . '/' . $screenshot; ?>" alt="" />
<?php endif; ?>