Changeset 52341
- Timestamp:
- 12/07/2021 08:05:27 PM (3 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r52330 r52341 783 783 : null, 784 784 ), 785 'block_theme' => $theme->is_block_theme(), 785 786 ); 786 787 } -
trunk/src/wp-admin/themes.php
r52020 r52341 901 901 ?> 902 902 <a class="button activate" href="{{{ data.actions.activate }}}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 903 <?php 904 /* translators: %s: Theme name. */ 905 $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); 906 ?> 907 <a aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" class="button button-primary load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}"><?php _e( 'Live Preview' ); ?></a> 903 <# if ( ! data.block_theme ) { #> 904 <?php 905 /* translators: %s: Theme name. */ 906 $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); 907 ?> 908 <a aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" class="button button-primary load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}"><?php _e( 'Live Preview' ); ?></a> 909 <# } #> 908 910 <# } else { #> 909 911 <?php
Note: See TracChangeset
for help on using the changeset viewer.