Themes: Add version to theme screenshot URL in `WP_Themes_List_Table`.

Follow-up to [52947].

See #53370.


Built from https://develop.svn.wordpress.org/trunk@52948


git-svn-id: http://core.svn.wordpress.org/trunk@52537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-03-18 12:44:04 +00:00
parent a32545f854
commit 775ae0b5f6
2 changed files with 3 additions and 3 deletions

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>

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.0-alpha-52947';
$wp_version = '6.0-alpha-52948';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.