Changeset 62603 for branches/7.0/src/wp-admin/themes.php
- Timestamp:
- 06/30/2026 08:17:07 PM (3 months ago)
- Location:
- branches/7.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/themes.php (modified) (19 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/7.0
-
branches/7.0/src/wp-admin/themes.php
r61195 r62603 382 382 383 383 if ( file_exists( WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}" ) || ! empty( $menu_hook ) ) { 384 $current_theme_actions[] = "<a class='button $class' href='admin.php?page={$submenu[$item[2]][0][2]}'>{$item[0]}</a>";384 $current_theme_actions[] = "<a class='button button-compact$class' href='admin.php?page={$submenu[$item[2]][0][2]}'>{$item[0]}</a>"; 385 385 } else { 386 $current_theme_actions[] = "<a class='button $class' href='{$submenu[$item[2]][0][2]}'>{$item[0]}</a>";386 $current_theme_actions[] = "<a class='button button-compact$class' href='{$submenu[$item[2]][0][2]}'>{$item[0]}</a>"; 387 387 } 388 388 } elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { … … 391 391 if ( current_user_can( 'customize' ) ) { 392 392 if ( 'custom-header' === $menu_file ) { 393 $current_theme_actions[] = "<a class='button hide-if-no-customize$class' href='customize.php?autofocus[control]=header_image'>{$item[0]}</a>";393 $current_theme_actions[] = "<a class='button button-compact hide-if-no-customize$class' href='customize.php?autofocus[control]=header_image'>{$item[0]}</a>"; 394 394 } elseif ( 'custom-background' === $menu_file ) { 395 $current_theme_actions[] = "<a class='button hide-if-no-customize$class' href='customize.php?autofocus[control]=background_image'>{$item[0]}</a>";395 $current_theme_actions[] = "<a class='button button-compact hide-if-no-customize$class' href='customize.php?autofocus[control]=background_image'>{$item[0]}</a>"; 396 396 } 397 397 } … … 403 403 404 404 if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) { 405 $current_theme_actions[] = "<a class='button $class' href='{$item[2]}'>{$item[0]}</a>";405 $current_theme_actions[] = "<a class='button button-compact$class' href='{$item[2]}'>{$item[0]}</a>"; 406 406 } else { 407 $current_theme_actions[] = "<a class='button $class' href='themes.php?page={$item[2]}'>{$item[0]}</a>";407 $current_theme_actions[] = "<a class='button button-compact$class' href='themes.php?page={$item[2]}'>{$item[0]}</a>"; 408 408 } 409 409 } … … 610 610 $customize_aria_label = sprintf( _x( 'Customize %s', 'theme' ), $theme['name'] ); 611 611 ?> 612 <a class="button button- primary customize load-customize hide-if-no-customize"612 <a class="button button-compact button-primary customize load-customize hide-if-no-customize" 613 613 href="<?php echo esc_url( $theme['actions']['customize'] ); ?>" 614 614 aria-label="<?php echo esc_attr( $customize_aria_label ); ?>" … … 620 620 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 621 621 ?> 622 <a class="button activate"622 <a class="button button-compact activate" 623 623 href="<?php echo esc_url( $theme['actions']['activate'] ); ?>" 624 624 aria-label="<?php echo esc_attr( $aria_label ); ?>" … … 631 631 $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); 632 632 ?> 633 <a class="button button- primary load-customize hide-if-no-customize"633 <a class="button button-compact button-primary load-customize hide-if-no-customize" 634 634 href="<?php echo esc_url( $theme['actions']['customize'] ); ?>" 635 635 aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" … … 641 641 $aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' ); 642 642 ?> 643 <a class="button disabled"643 <a class="button button-compact disabled" 644 644 aria-label="<?php echo esc_attr( $aria_label ); ?>" 645 645 ><?php _ex( 'Cannot Activate', 'theme' ); ?></a> … … 650 650 $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); 651 651 ?> 652 <a class="button button- primary hide-if-no-customize disabled"652 <a class="button button-compact button-primary hide-if-no-customize disabled" 653 653 aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" 654 654 ><?php _e( 'Live Preview' ); ?></a> … … 1002 1002 $customize_aria_label = sprintf( _x( 'Customize %s', 'theme' ), '{{ data.name }}' ); 1003 1003 ?> 1004 <a class="button button- primary customize load-customize hide-if-no-customize"1004 <a class="button button-compact button-primary customize load-customize hide-if-no-customize" 1005 1005 href="{{{ data.actions.customize }}}" 1006 1006 aria-label="<?php echo esc_attr( $customize_aria_label ); ?>" … … 1013 1013 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 1014 1014 ?> 1015 <a class="button activate"1015 <a class="button button-compact activate" 1016 1016 href="{{{ data.actions.activate }}}" 1017 1017 aria-label="<?php echo esc_attr( $aria_label ); ?>" … … 1022 1022 $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); 1023 1023 ?> 1024 <a class="button button- primary load-customize hide-if-no-customize"1024 <a class="button button-compact button-primary load-customize hide-if-no-customize" 1025 1025 href="{{{ data.actions.customize }}}" 1026 1026 aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" … … 1031 1031 $aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' ); 1032 1032 ?> 1033 <a class="button disabled"1033 <a class="button button-compact disabled" 1034 1034 aria-label="<?php echo esc_attr( $aria_label ); ?>" 1035 1035 ><?php _ex( 'Cannot Activate', 'theme' ); ?></a> … … 1039 1039 $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); 1040 1040 ?> 1041 <a class="button button- primary hide-if-no-customize disabled"1041 <a class="button button-compact button-primary hide-if-no-customize disabled" 1042 1042 aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" 1043 1043 ><?php _e( 'Live Preview' ); ?></a> … … 1252 1252 <div class="theme-actions"> 1253 1253 <div class="active-theme"> 1254 <a class="button button- primary customize load-customize hide-if-no-customize"1254 <a class="button button-compact button-primary customize load-customize hide-if-no-customize" 1255 1255 href="{{{ data.actions.customize }}}" 1256 1256 ><?php _e( 'Customize' ); ?></a> … … 1264 1264 $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); 1265 1265 ?> 1266 <a class="button button- primary load-customize hide-if-no-customize"1266 <a class="button button-compact button-primary load-customize hide-if-no-customize" 1267 1267 href="{{{ data.actions.customize }}}" 1268 1268 aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" … … 1274 1274 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 1275 1275 ?> 1276 <a class="button activate"1276 <a class="button button-compact activate" 1277 1277 href="{{{ data.actions.activate }}}" 1278 1278 aria-label="<?php echo esc_attr( $aria_label ); ?>" … … 1284 1284 $live_preview_aria_label = sprintf( _x( 'Live Preview %s', 'theme' ), '{{ data.name }}' ); 1285 1285 ?> 1286 <a class="button button- primary hide-if-no-customize disabled"1286 <a class="button button-compact button-primary hide-if-no-customize disabled" 1287 1287 aria-label="<?php echo esc_attr( $live_preview_aria_label ); ?>" 1288 1288 ><?php _e( 'Live Preview' ); ?></a> … … 1293 1293 $aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' ); 1294 1294 ?> 1295 <a class="button disabled"1295 <a class="button button-compact disabled" 1296 1296 aria-label="<?php echo esc_attr( $aria_label ); ?>" 1297 1297 ><?php _ex( 'Cannot Activate', 'theme' ); ?></a> … … 1305 1305 $aria_label = sprintf( _x( 'Delete %s', 'theme' ), '{{ data.name }}' ); 1306 1306 ?> 1307 <a class="button delete-theme"1307 <a class="button button-compact delete-theme" 1308 1308 href="{{{ data.actions['delete'] }}}" 1309 1309 aria-label="<?php echo esc_attr( $aria_label ); ?>"
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)