WordPress.org

Make WordPress Core

Ticket #7656: themes.patch

File themes.patch, 757 bytes (added by mrmist, 6 years ago)

wp-admin\themes.php patch to make current theme preview clickable

  • themes.php

     
    6565<h2><?php _e('Current Theme'); ?></h2> 
    6666<div id="current-theme"> 
    6767<?php if ( $ct->screenshot ) : ?> 
    68 <img src="<?php echo WP_CONTENT_URL . $ct->stylesheet_dir . '/' . $ct->screenshot; ?>" alt="<?php _e('Current theme preview'); ?>" /> 
     68<a href="theme-editor.php"><img src="<?php echo WP_CONTENT_URL . $ct->stylesheet_dir . '/' . $ct->screenshot; ?>" alt="<?php _e('Current theme preview - click to edit'); ?>" /></a> 
    6969<?php endif; ?> 
    7070<h3><?php printf(_c('%1$s %2$s by %3$s|1: theme title, 2: theme version, 3: theme author'), $ct->title, $ct->version, $ct->author) ; ?></h3> 
    7171<p class="description"><?php echo $ct->description; ?></p>