- 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-plugins-list-table.php
r39063 r41160 557 557 'activate' => '', 558 558 'details' => '', 559 'edit' => '',560 559 'delete' => '', 561 560 ); … … 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 … … 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 … … 688 683 * 689 684 * The default action links for the site plugins list table include 690 * 'Activate', 'Deactivate', and 'Edit', for a network site, and691 * '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
Note: See TracChangeset
for help on using the changeset viewer.