Themes: Add version to theme screenshot URL in WP_Themes_List_Table.

Follow-up to [52947].

See #53370.



git-svn-id: https://develop.svn.wordpress.org/trunk@52948 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-03-18 12:42:38 +00:00
parent 0fb4f90030
commit 7222112803

View File

@ -247,12 +247,12 @@ class WP_Themes_List_Table extends WP_List_Table {
<span class="screenshot hide-if-customize">
<?php if ( $screenshot ) : ?>
<img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
<img src="<?php echo esc_url( $screenshot . '?ver=' . $theme->version ); ?>" alt="" />
<?php endif; ?>
</span>
<a href="<?php echo wp_customize_url( $stylesheet ); ?>" class="screenshot load-customize hide-if-no-customize">
<?php if ( $screenshot ) : ?>
<img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
<img src="<?php echo esc_url( $screenshot . '?ver=' . $theme->version ); ?>" alt="" />
<?php endif; ?>
</a>