Remove Recently Updated from dash Plugins widget. see #19573
git-svn-id: http://svn.automattic.com/wordpress/trunk@19630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3f94d307b3
commit
5f0013ec51
@ -937,8 +937,7 @@ function wp_dashboard_secondary_output() {
|
|||||||
function wp_dashboard_plugins() {
|
function wp_dashboard_plugins() {
|
||||||
wp_dashboard_cached_rss_widget( 'dashboard_plugins', 'wp_dashboard_plugins_output', array(
|
wp_dashboard_cached_rss_widget( 'dashboard_plugins', 'wp_dashboard_plugins_output', array(
|
||||||
'http://wordpress.org/extend/plugins/rss/browse/popular/',
|
'http://wordpress.org/extend/plugins/rss/browse/popular/',
|
||||||
'http://wordpress.org/extend/plugins/rss/browse/new/',
|
'http://wordpress.org/extend/plugins/rss/browse/new/'
|
||||||
'http://wordpress.org/extend/plugins/rss/browse/updated/'
|
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -950,14 +949,13 @@ function wp_dashboard_plugins() {
|
|||||||
function wp_dashboard_plugins_output() {
|
function wp_dashboard_plugins_output() {
|
||||||
$popular = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/popular/' );
|
$popular = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/popular/' );
|
||||||
$new = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/new/' );
|
$new = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/new/' );
|
||||||
$updated = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/updated/' );
|
|
||||||
|
|
||||||
if ( false === $plugin_slugs = get_transient( 'plugin_slugs' ) ) {
|
if ( false === $plugin_slugs = get_transient( 'plugin_slugs' ) ) {
|
||||||
$plugin_slugs = array_keys( get_plugins() );
|
$plugin_slugs = array_keys( get_plugins() );
|
||||||
set_transient( 'plugin_slugs', $plugin_slugs, 86400 );
|
set_transient( 'plugin_slugs', $plugin_slugs, 86400 );
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ( array( 'popular' => __('Most Popular'), 'new' => __('Newest Plugins'), 'updated' => __('Recently Updated') ) as $feed => $label ) {
|
foreach ( array( 'popular' => __('Most Popular'), 'new' => __('Newest Plugins') ) as $feed => $label ) {
|
||||||
if ( is_wp_error($$feed) || !$$feed->get_item_quantity() )
|
if ( is_wp_error($$feed) || !$$feed->get_item_quantity() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user