Changeset 38672 for trunk/src/wp-admin/themes.php
- Timestamp:
- 09/28/2016 07:53:07 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r38325 r38672 201 201 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]); 202 202 if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) 203 $current_theme_actions[] = "<a class='button button-secondary$class' href='admin.php?page={$submenu[$item[2]][0][2]}'>{$item[0]}</a>";203 $current_theme_actions[] = "<a class='button$class' href='admin.php?page={$submenu[$item[2]][0][2]}'>{$item[0]}</a>"; 204 204 else 205 $current_theme_actions[] = "<a class='button button-secondary$class' href='{$submenu[$item[2]][0][2]}'>{$item[0]}</a>";205 $current_theme_actions[] = "<a class='button$class' href='{$submenu[$item[2]][0][2]}'>{$item[0]}</a>"; 206 206 } elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { 207 207 $menu_file = $item[2]; … … 209 209 if ( current_user_can( 'customize' ) ) { 210 210 if ( 'custom-header' === $menu_file ) { 211 $current_theme_actions[] = "<a class='button button-secondaryhide-if-no-customize$class' href='customize.php?autofocus[control]=header_image'>{$item[0]}</a>";211 $current_theme_actions[] = "<a class='button hide-if-no-customize$class' href='customize.php?autofocus[control]=header_image'>{$item[0]}</a>"; 212 212 } elseif ( 'custom-background' === $menu_file ) { 213 $current_theme_actions[] = "<a class='button button-secondaryhide-if-no-customize$class' href='customize.php?autofocus[control]=background_image'>{$item[0]}</a>";213 $current_theme_actions[] = "<a class='button hide-if-no-customize$class' href='customize.php?autofocus[control]=background_image'>{$item[0]}</a>"; 214 214 } 215 215 } … … 220 220 221 221 if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) { 222 $current_theme_actions[] = "<a class='button button-secondary$class' href='{$item[2]}'>{$item[0]}</a>";222 $current_theme_actions[] = "<a class='button$class' href='{$item[2]}'>{$item[0]}</a>"; 223 223 } else { 224 $current_theme_actions[] = "<a class='button button-secondary$class' href='themes.php?page={$item[2]}'>{$item[0]}</a>";224 $current_theme_actions[] = "<a class='button$class' href='themes.php?page={$item[2]}'>{$item[0]}</a>"; 225 225 } 226 226 } … … 282 282 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 283 283 ?> 284 <a class="button button-secondaryactivate" href="<?php echo $theme['actions']['activate']; ?>" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>284 <a class="button activate" href="<?php echo $theme['actions']['activate']; ?>" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 285 285 <?php if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { ?> 286 286 <a class="button button-primary load-customize hide-if-no-customize" href="<?php echo $theme['actions']['customize']; ?>"><?php _e( 'Live Preview' ); ?></a> … … 334 334 $delete_url = wp_nonce_url( $delete_url, 'delete-theme_' . $stylesheet ); 335 335 ?> 336 <td><a href="<?php echo esc_url( $delete_url ); ?>" class="button button-secondarydelete-theme"><?php _e( 'Delete' ); ?></a></td>336 <td><a href="<?php echo esc_url( $delete_url ); ?>" class="button delete-theme"><?php _e( 'Delete' ); ?></a></td> 337 337 <?php 338 338 } … … 349 349 $install_url = wp_nonce_url( $install_url, 'install-theme_' . $parent_theme_name ); 350 350 ?> 351 <td><a href="<?php echo esc_url( $install_url ); ?>" class="button button-secondaryinstall-theme"><?php _e( 'Install Parent Theme' ); ?></a></td>351 <td><a href="<?php echo esc_url( $install_url ); ?>" class="button install-theme"><?php _e( 'Install Parent Theme' ); ?></a></td> 352 352 <?php 353 353 } … … 411 411 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 412 412 ?> 413 <a class="button button-secondaryactivate" href="{{{ data.actions.activate }}}" aria-label="<?php echo $aria_label; ?>"><?php _e( 'Activate' ); ?></a>413 <a class="button activate" href="{{{ data.actions.activate }}}" aria-label="<?php echo $aria_label; ?>"><?php _e( 'Activate' ); ?></a> 414 414 <a class="button button-primary load-customize hide-if-no-customize" href="{{{ data.actions.customize }}}"><?php _e( 'Live Preview' ); ?></a> 415 415 <# } #> … … 470 470 ?> 471 471 <# if ( data.actions.activate ) { #> 472 <a href="{{{ data.actions.activate }}}" class="button button-secondaryactivate" aria-label="<?php echo $aria_label; ?>"><?php _e( 'Activate' ); ?></a>472 <a href="{{{ data.actions.activate }}}" class="button activate" aria-label="<?php echo $aria_label; ?>"><?php _e( 'Activate' ); ?></a> 473 473 <# } #> 474 474 <a href="{{{ data.actions.customize }}}" class="button button-primary load-customize hide-if-no-customize"><?php _e( 'Live Preview' ); ?></a> … … 476 476 477 477 <# if ( ! data.active && data.actions['delete'] ) { #> 478 <a href="{{{ data.actions['delete'] }}}" class="button button-secondarydelete-theme"><?php _e( 'Delete' ); ?></a>478 <a href="{{{ data.actions['delete'] }}}" class="button delete-theme"><?php _e( 'Delete' ); ?></a> 479 479 <# } #> 480 480 </div>
Note: See TracChangeset
for help on using the changeset viewer.