From 5d2b4523511605119611400b265c6ad46d4392f5 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 16:59:29 +0000 Subject: [PATCH] In `install_plugin_information()`, `$title` is set in a `foreach` loop and never used. This appears to be due to copy-pasting a previous `foreach` loop and not discarding these bits. See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28301 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/plugin-install.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php index 44a6a1b4c4..1af1a69d8c 100644 --- a/src/wp-admin/includes/plugin-install.php +++ b/src/wp-admin/includes/plugin-install.php @@ -411,11 +411,6 @@ function install_plugin_information() { foreach ( (array)$api->sections as $section_name => $content ) { - if ( isset( $plugins_section_titles[ $section_name ] ) ) - $title = $plugins_section_titles[ $section_name ]; - else - $title = ucwords( str_replace( '_', ' ', $section_name ) ); - $content = links_add_base_url( $content, 'https://wordpress.org/plugins/' . $api->slug . '/' ); $content = links_add_target( $content, '_blank' );