WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/29/2012 08:31:56 PM (10 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/includes/class-wp-themes-list-table.php

    r20029 r20043  
    153153            ?>
    154154            <a href="<?php echo $preview_link; ?>" class="thickbox thickbox-preview screenshot">
    155             <?php if ( $theme->get_screenshot() ) : ?>
    156                 <img src="<?php echo esc_url( $theme->get_screenshot( 'absolute' ) ); ?>" alt="" />
     155            <?php if ( $screenshot = $theme->get_screenshot() ) : ?>
     156                <img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
    157157            <?php endif; ?>
    158158            </a>
Note: See TracChangeset for help on using the changeset viewer.