Have WP_Theme::get_screenshot() default to an absolute URI. Allow 'relative' to be requested. see #20103, see #19816.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -152,8 +152,8 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||
$actions = implode ( ' | ', $actions );
|
||||
?>
|
||||
<a href="<?php echo $preview_link; ?>" class="thickbox thickbox-preview screenshot">
|
||||
<?php if ( $theme->get_screenshot() ) : ?>
|
||||
<img src="<?php echo esc_url( $theme->get_screenshot( 'absolute' ) ); ?>" alt="" />
|
||||
<?php if ( $screenshot = $theme->get_screenshot() ) : ?>
|
||||
<img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<h3><?php
|
||||
|
||||
@@ -99,8 +99,8 @@ if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
|
||||
<?php $ct = wp_get_theme(); ?>
|
||||
<h3><?php _e( 'Current Theme' ); ?></h3>
|
||||
<div id="current-theme">
|
||||
<?php if ( $ct->get_screenshot() ) : ?>
|
||||
<img src="<?php echo $ct->get_screenshot( 'absolute' ); ?>" alt="<?php esc_attr_e( 'Current theme preview'); ?>" />
|
||||
<?php if ( $screenshot = $ct->get_screenshot() ) : ?>
|
||||
<img src="<?php echo esc_url( $screenshot ); ?>" alt="<?php esc_attr_e( 'Current theme preview'); ?>" />
|
||||
<?php endif; ?>
|
||||
<h4><?php
|
||||
/* translators: 1: theme title, 2: theme version, 3: theme author */
|
||||
|
||||
Reference in New Issue
Block a user