Make WordPress Core

Changeset 28301


Ignore:
Timestamp:
05/06/2014 04:59:29 PM (11 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r28145 r28301  
    412412        foreach ( (array)$api->sections as $section_name => $content ) {
    413413
    414             if ( isset( $plugins_section_titles[ $section_name ] ) )
    415                 $title = $plugins_section_titles[ $section_name ];
    416             else
    417                 $title = ucwords( str_replace( '_', ' ', $section_name ) );
    418 
    419414            $content = links_add_base_url( $content, 'https://wordpress.org/plugins/' . $api->slug . '/' );
    420415            $content = links_add_target( $content, '_blank' );
Note: See TracChangeset for help on using the changeset viewer.