diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php
index 1fd5a6739b..2806725d94 100644
|
a
|
b
|
if ( $tab ) { |
| 293 | 293 | <div class="theme-screenshot blank"></div> |
| 294 | 294 | <# } #> |
| 295 | 295 | |
| 296 | | <# if ( data.installed ) { #> |
| | 296 | <# if ( data.active ) { #> |
| | 297 | <div class="notice notice-success notice-alt"><p><?php _ex( 'Activated', 'theme' ); ?></p></div> |
| | 298 | <# } else if ( data.installed ) { #> |
| 297 | 299 | <div class="notice notice-success notice-alt"><p><?php _ex( 'Installed', 'theme' ); ?></p></div> |
| 298 | 300 | <# } #> |
| 299 | 301 | |
| … |
… |
if ( $tab ) { |
| 370 | 372 | /* translators: %s: Theme name. */ |
| 371 | 373 | $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); |
| 372 | 374 | ?> |
| 373 | | <# if ( data.activate_url ) { #> |
| 374 | | <# if ( ! data.active ) { #> |
| 375 | | <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> |
| 376 | | <# } else { #> |
| 377 | | <button class="button button-primary disabled"><?php _ex( 'Activated', 'theme' ); ?></button> |
| 378 | | <# } #> |
| | 375 | <# if ( data.activate_url && ! data.active ) { #> |
| | 376 | <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> |
| 379 | 377 | <# } #> |
| 380 | 378 | <# if ( data.customize_url ) { #> |
| 381 | 379 | <# if ( ! data.active ) { #> |