Skip to content

Commit

Permalink
Update src/wp-admin/themes.php
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Arntz <felixarntz@users.noreply.github.com>
  • Loading branch information
MaggieCabrera and felixarntz committed Jun 27, 2023
1 parent a217191 commit 9971a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wp-admin/themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@
?>
<a class="button activate" href="<?php echo $theme['actions']['activate']; ?>" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
<?php
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
// Only classic themes require the "customize" capability.
if ( current_user_can( 'edit_theme_options' ) && ( $theme['blockTheme'] || current_user_can( 'customize' ) ) ) {
/* translators: %s: Theme name. */
$live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' );
?>
Expand Down

0 comments on commit 9971a7a

Please sign in to comment.