Make WordPress Core

Changeset 52948


Ignore:
Timestamp:
03/18/2022 12:42:38 PM (2 years ago)
Author:
audrasjb
Message:

Themes: Add version to theme screenshot URL in WP_Themes_List_Table.

Follow-up to [52947].

See #53370.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-themes-list-table.php

    r52580 r52948  
    248248            <span class="screenshot hide-if-customize">
    249249                <?php if ( $screenshot ) : ?>
    250                     <img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
     250                    <img src="<?php echo esc_url( $screenshot . '?ver=' . $theme->version ); ?>" alt="" />
    251251                <?php endif; ?>
    252252            </span>
    253253            <a href="<?php echo wp_customize_url( $stylesheet ); ?>" class="screenshot load-customize hide-if-no-customize">
    254254                <?php if ( $screenshot ) : ?>
    255                     <img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
     255                    <img src="<?php echo esc_url( $screenshot . '?ver=' . $theme->version ); ?>" alt="" />
    256256                <?php endif; ?>
    257257            </a>
Note: See TracChangeset for help on using the changeset viewer.