- Timestamp:
- 07/26/2017 11:27:47 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r38827 r41160 396 396 'enable' => '', 397 397 'disable' => '', 398 'edit' => '',399 398 'delete' => '' 400 399 ); … … 449 448 } 450 449 451 if ( current_user_can('edit_themes') ) {452 $url = add_query_arg( array(453 'theme' => $theme_key,454 ), 'theme-editor.php' );455 456 /* translators: %s: theme name */457 $aria_label = sprintf( __( 'Open %s in the Theme Editor' ), $theme->display( 'Name' ) );458 459 $actions['edit'] = sprintf( '<a href="%s" class="edit" aria-label="%s">%s</a>',460 esc_url( $url ),461 esc_attr( $aria_label ),462 __( 'Edit' )463 );464 }465 466 450 if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $stylesheet != get_option( 'stylesheet' ) && $stylesheet != get_option( 'template' ) ) { 467 451 $url = add_query_arg( array( … … 493 477 * 494 478 * The default action links for the Network themes list table include 495 * 'Network Enable', 'Network Disable', 'Edit',and 'Delete'.479 * 'Network Enable', 'Network Disable', and 'Delete'. 496 480 * 497 481 * The default action links for the Site themes list table include 498 * 'Enable', 'Disable', and 'Edit'.482 * 'Enable', and 'Disable'. 499 483 * 500 484 * @since 2.8.0
Note: See TracChangeset
for help on using the changeset viewer.