mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 17:13:30 +01:00
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
This commit is contained in:
parent
ffa620b972
commit
5d2b452351
@ -411,11 +411,6 @@ function install_plugin_information() {
|
|||||||
|
|
||||||
foreach ( (array)$api->sections as $section_name => $content ) {
|
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_base_url( $content, 'https://wordpress.org/plugins/' . $api->slug . '/' );
|
||||||
$content = links_add_target( $content, '_blank' );
|
$content = links_add_target( $content, '_blank' );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user