diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index 0f3865a985..8e4c789dbb 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -395,7 +395,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table { $actions = array( 'enable' => '', 'disable' => '', - 'edit' => '', 'delete' => '' ); @@ -448,21 +447,6 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); } - if ( current_user_can('edit_themes') ) { - $url = add_query_arg( array( - 'theme' => $theme_key, - ), 'theme-editor.php' ); - - /* translators: %s: theme name */ - $aria_label = sprintf( __( 'Open %s in the Theme Editor' ), $theme->display( 'Name' ) ); - - $actions['edit'] = sprintf( '%s', - esc_url( $url ), - esc_attr( $aria_label ), - __( 'Edit' ) - ); - } - if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $stylesheet != get_option( 'stylesheet' ) && $stylesheet != get_option( 'template' ) ) { $url = add_query_arg( array( 'action' => 'delete-selected', @@ -492,10 +476,10 @@ class WP_MS_Themes_List_Table extends WP_List_Table { * non-network enabled themes when editing a site in the Network admin. * * The default action links for the Network themes list table include - * 'Network Enable', 'Network Disable', 'Edit', and 'Delete'. + * 'Network Enable', 'Network Disable', and 'Delete'. * * The default action links for the Site themes list table include - * 'Enable', 'Disable', and 'Edit'. + * 'Enable', and 'Disable'. * * @since 2.8.0 * diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index 136fbd4c73..9373d852cf 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -556,7 +556,6 @@ class WP_Plugins_List_Table extends WP_List_Table { 'deactivate' => '', 'activate' => '', 'details' => '', - 'edit' => '', 'delete' => '', ); @@ -637,10 +636,6 @@ class WP_Plugins_List_Table extends WP_List_Table { } // end if $screen->in_admin( 'network' ) - if ( ( ! is_multisite() || $screen->in_admin( 'network' ) ) && current_user_can( 'edit_plugins' ) && is_writable( WP_PLUGIN_DIR . '/' . $plugin_file ) ) { - /* translators: %s: plugin name */ - $actions['edit'] = '' . __( 'Edit' ) . ''; - } } // end if $context $actions = array_filter( $actions ); @@ -651,7 +646,7 @@ class WP_Plugins_List_Table extends WP_List_Table { * Filters the action links displayed for each plugin in the Network Admin Plugins list table. * * The default action links for the Network plugins list table include - * 'Network Activate', 'Network Deactivate', 'Edit', and 'Delete'. + * 'Network Activate', 'Network Deactivate', and 'Delete'. * * @since 3.1.0 * @@ -687,8 +682,8 @@ class WP_Plugins_List_Table extends WP_List_Table { * Filters the action links displayed for each plugin in the Plugins list table. * * The default action links for the site plugins list table include - * 'Activate', 'Deactivate', and 'Edit', for a network site, and - * 'Activate', 'Deactivate', 'Edit', and 'Delete' for a single site. + * 'Activate', and 'Deactivate', for a network site, and + * 'Activate', 'Deactivate', and 'Delete' for a single site. * * @since 2.5.0 * @since 2.6.0 The `$context` parameter was added. diff --git a/wp-includes/version.php b/wp-includes/version.php index 61489ef055..2c42e7214a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41159'; +$wp_version = '4.9-alpha-41160'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.