Make WordPress Core


Ignore:
Timestamp:
02/29/2012 08:31:56 PM (13 years ago)
Author:
nacin
Message:

Have WP_Theme::get_screenshot() default to an absolute URI. Allow 'relative' to be requested. see #20103, see #19816.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/themes.php

    r20029 r20043  
    100100<h3><?php _e( 'Current Theme' ); ?></h3>
    101101<div id="current-theme">
    102 <?php if ( $ct->get_screenshot() ) : ?>
    103 <img src="<?php echo $ct->get_screenshot( 'absolute' ); ?>" alt="<?php esc_attr_e( 'Current theme preview'); ?>" />
     102<?php if ( $screenshot = $ct->get_screenshot() ) : ?>
     103<img src="<?php echo esc_url( $screenshot ); ?>" alt="<?php esc_attr_e( 'Current theme preview'); ?>" />
    104104<?php endif; ?>
    105105<h4><?php
Note: See TracChangeset for help on using the changeset viewer.