From 44e2d48a3c58dd3e08fa6b4e9476703fd7101fde Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 17:00:18 +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. Built from https://develop.svn.wordpress.org/trunk@28301 git-svn-id: http://core.svn.wordpress.org/trunk@28129 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin-install.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index 44a6a1b4c4..1af1a69d8c 100644 --- a/wp-admin/includes/plugin-install.php +++ b/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' );