diff --git a/src/wp-admin/includes/class-wp-ms-themes-list-table.php b/src/wp-admin/includes/class-wp-ms-themes-list-table.php
index 0f3865a985..8e4c789dbb 100644
|
a
|
b
|
class WP_MS_Themes_List_Table extends WP_List_Table { |
| 395 | 395 | $actions = array( |
| 396 | 396 | 'enable' => '', |
| 397 | 397 | 'disable' => '', |
| 398 | | 'edit' => '', |
| 399 | 398 | 'delete' => '' |
| 400 | 399 | ); |
| 401 | 400 | |
| … |
… |
class WP_MS_Themes_List_Table extends WP_List_Table { |
| 448 | 447 | ); |
| 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( |
| 468 | 452 | 'action' => 'delete-selected', |
| … |
… |
class WP_MS_Themes_List_Table extends WP_List_Table { |
| 492 | 476 | * non-network enabled themes when editing a site in the Network admin. |
| 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 |
| 501 | 485 | * |
diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php
index 136fbd4c73..9373d852cf 100644
|
a
|
b
|
class WP_Plugins_List_Table extends WP_List_Table { |
| 556 | 556 | 'deactivate' => '', |
| 557 | 557 | 'activate' => '', |
| 558 | 558 | 'details' => '', |
| 559 | | 'edit' => '', |
| 560 | 559 | 'delete' => '', |
| 561 | 560 | ); |
| 562 | 561 | |
| … |
… |
class WP_Plugins_List_Table extends WP_List_Table { |
| 637 | 636 | |
| 638 | 637 | } // end if $screen->in_admin( 'network' ) |
| 639 | 638 | |
| 640 | | if ( ( ! is_multisite() || $screen->in_admin( 'network' ) ) && current_user_can( 'edit_plugins' ) && is_writable( WP_PLUGIN_DIR . '/' . $plugin_file ) ) { |
| 641 | | /* translators: %s: plugin name */ |
| 642 | | $actions['edit'] = '<a href="plugin-editor.php?file=' . $plugin_file . '" class="edit" aria-label="' . esc_attr( sprintf( __( 'Edit %s' ), $plugin_data['Name'] ) ) . '">' . __( 'Edit' ) . '</a>'; |
| 643 | | } |
| 644 | 639 | } // end if $context |
| 645 | 640 | |
| 646 | 641 | $actions = array_filter( $actions ); |
| … |
… |
class WP_Plugins_List_Table extends WP_List_Table { |
| 651 | 646 | * Filters the action links displayed for each plugin in the Network Admin Plugins list table. |
| 652 | 647 | * |
| 653 | 648 | * The default action links for the Network plugins list table include |
| 654 | | * 'Network Activate', 'Network Deactivate', 'Edit', and 'Delete'. |
| | 649 | * 'Network Activate', 'Network Deactivate', and 'Delete'. |
| 655 | 650 | * |
| 656 | 651 | * @since 3.1.0 |
| 657 | 652 | * |
| … |
… |
class WP_Plugins_List_Table extends WP_List_Table { |
| 687 | 682 | * Filters the action links displayed for each plugin in the Plugins list table. |
| 688 | 683 | * |
| 689 | 684 | * The default action links for the site plugins list table include |
| 690 | | * 'Activate', 'Deactivate', and 'Edit', for a network site, and |
| 691 | | * 'Activate', 'Deactivate', 'Edit', and 'Delete' for a single site. |
| | 685 | * 'Activate', and 'Deactivate', for a network site, and |
| | 686 | * 'Activate', 'Deactivate', and 'Delete' for a single site. |
| 692 | 687 | * |
| 693 | 688 | * @since 2.5.0 |
| 694 | 689 | * @since 2.6.0 The `$context` parameter was added. |