Changeset 28742
- Timestamp:
- 06/11/2014 06:55:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r28633 r28742 1047 1047 echo '<ul>'; 1048 1048 1049 foreach ( array( 1050 'popular' => __( 'Popular Plugin' ) 1051 ) as $feed => $label ) { 1052 if ( is_wp_error($$feed) || !$$feed->get_item_quantity() ) 1049 foreach ( array( $popular ) as $feed ) { 1050 if ( is_wp_error( $feed ) || ! $feed->get_item_quantity() ) 1053 1051 continue; 1054 1052 1055 $items = $ $feed->get_items(0, 5);1053 $items = $feed->get_items(0, 5); 1056 1054 1057 1055 // Pick a random, non-installed plugin … … 1099 1097 1100 1098 $ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . '&TB_iframe=true&width=600&height=800'; 1101 1102 echo "<li class='dashboard-news-plugin'><span>$label:</span> <a href='$link' class='dashboard-news-plugin-link'>$title</a> <span>(<a href='$ilink' class='thickbox' title='$title'>" . __( 'Install' ) . "</a>)</span></li>"; 1103 1104 $$feed->__destruct(); 1105 unset( $$feed ); 1099 echo "<li class='dashboard-news-plugin'><span>" . __( 'Popular Plugin' ) . ":</span> <a href='$link' class='dashboard-news-plugin-link'>$title</a> <span>(<a href='$ilink' class='thickbox' title='$title'>" . __( 'Install' ) . "</a>)</span></li>"; 1100 1101 $feed->__destruct(); 1102 unset( $feed ); 1106 1103 } 1107 1104
Note: See TracChangeset
for help on using the changeset viewer.