diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
index b265e1f592..2ead9c6356 100644
--- a/wp-admin/includes/dashboard.php
+++ b/wp-admin/includes/dashboard.php
@@ -1046,13 +1046,11 @@ function wp_dashboard_plugins_output( $rss, $args = array() ) {
echo '
';
- foreach ( array(
- 'popular' => __( 'Popular Plugin' )
- ) as $feed => $label ) {
- if ( is_wp_error($$feed) || !$$feed->get_item_quantity() )
+ foreach ( array( $popular ) as $feed ) {
+ if ( is_wp_error( $feed ) || ! $feed->get_item_quantity() )
continue;
- $items = $$feed->get_items(0, 5);
+ $items = $feed->get_items(0, 5);
// Pick a random, non-installed plugin
while ( true ) {
@@ -1098,11 +1096,10 @@ function wp_dashboard_plugins_output( $rss, $args = array() ) {
$description = esc_html( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option( 'blog_charset' ) ) ) );
$ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . '&TB_iframe=true&width=600&height=800';
+ echo "- " . __( 'Popular Plugin' ) . ": $title (" . __( 'Install' ) . ")
";
- echo "- $label: $title (" . __( 'Install' ) . ")
";
-
- $$feed->__destruct();
- unset( $$feed );
+ $feed->__destruct();
+ unset( $feed );
}
echo '
';