Index: wp-admin/includes/dashboard.php =================================================================== --- wp-admin/includes/dashboard.php (revision 19625) +++ wp-admin/includes/dashboard.php (working copy) @@ -70,10 +70,6 @@ wp_add_dashboard_widget( 'dashboard_incoming_links', __( 'Incoming Links' ), 'wp_dashboard_incoming_links', 'wp_dashboard_incoming_links_control' ); } - // WP Plugins Widget - if ( ( ! is_multisite() && is_blog_admin() && current_user_can( 'install_plugins' ) ) || ( is_network_admin() && current_user_can( 'manage_network_plugins' ) && current_user_can( 'install_plugins' ) ) ) - wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' ); - // QuickPress Widget if ( is_blog_admin() && current_user_can('edit_posts') ) wp_add_dashboard_widget( 'dashboard_quick_press', __( 'QuickPress' ), 'wp_dashboard_quick_press' ); @@ -934,96 +930,7 @@ } } -function wp_dashboard_plugins() { - 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/new/', - 'http://wordpress.org/extend/plugins/rss/browse/updated/' - ) ); -} - /** - * Display plugins most popular, newest plugins, and recently updated widget text. - * - * @since 2.5.0 - */ -function wp_dashboard_plugins_output() { - $popular = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/popular/' ); - $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' ) ) { - $plugin_slugs = array_keys( get_plugins() ); - set_transient( 'plugin_slugs', $plugin_slugs, 86400 ); - } - - foreach ( array( 'popular' => __('Most Popular'), 'new' => __('Newest Plugins'), 'updated' => __('Recently Updated') ) as $feed => $label ) { - if ( is_wp_error($$feed) || !$$feed->get_item_quantity() ) - continue; - - $items = $$feed->get_items(0, 5); - - // Pick a random, non-installed plugin - while ( true ) { - // Abort this foreach loop iteration if there's no plugins left of this type - if ( 0 == count($items) ) - continue 2; - - $item_key = array_rand($items); - $item = $items[$item_key]; - - list($link, $frag) = explode( '#', $item->get_link() ); - - $link = esc_url($link); - if ( preg_match( '|/([^/]+?)/?$|', $link, $matches ) ) - $slug = $matches[1]; - else { - unset( $items[$item_key] ); - continue; - } - - // Is this random plugin's slug already installed? If so, try again. - reset( $plugin_slugs ); - foreach ( $plugin_slugs as $plugin_slug ) { - if ( $slug == substr( $plugin_slug, 0, strlen( $slug ) ) ) { - unset( $items[$item_key] ); - continue 2; - } - } - - // If we get to this point, then the random plugin isn't installed and we can stop the while(). - break; - } - - // Eliminate some common badly formed plugin descriptions - while ( ( null !== $item_key = array_rand($items) ) && false !== strpos( $items[$item_key]->get_description(), 'Plugin Name:' ) ) - unset($items[$item_key]); - - if ( !isset($items[$item_key]) ) - continue; - - // current bbPress feed item titles are: user on "topic title" - if ( preg_match( '/"(.*)"/s', $item->get_title(), $matches ) ) - $title = $matches[1]; - else // but let's make it forward compatible if things change - $title = $item->get_title(); - $title = esc_html( $title ); - - $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 "
$description
\n"; - - $$feed->__destruct(); - unset($$feed); - } -} - -/** * Checks to see if all of the feed url in $check_urls are cached. * * If $check_urls is empty, look for the rss feed url found in the dashboard Index: wp-admin/js/plugin-install.dev.js =================================================================== --- wp-admin/js/plugin-install.dev.js (revision 19625) +++ wp-admin/js/plugin-install.dev.js (working copy) @@ -27,7 +27,7 @@ $(window).resize(function(){ tb_position(); }); - $('#dashboard_plugins a.thickbox, .plugins a.thickbox').click( function() { + $('.plugins a.thickbox').click( function() { tb_click.call(this); $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'}); Index: wp-admin/js/dashboard.dev.js =================================================================== --- wp-admin/js/dashboard.dev.js (revision 19625) +++ wp-admin/js/dashboard.dev.js (working copy) @@ -33,7 +33,6 @@ 'dashboard_incoming_links', 'dashboard_primary', 'dashboard_secondary', - 'dashboard_plugins' ]; ajaxPopulateWidgets = function(el) { Index: wp-admin/index-extra.php =================================================================== --- wp-admin/index-extra.php (revision 19625) +++ wp-admin/index-extra.php (working copy) @@ -31,10 +31,6 @@ wp_dashboard_secondary(); break; -case 'dashboard_plugins' : - wp_dashboard_plugins(); - break; - } ?> \ No newline at end of file Index: wp-admin/css/wp-admin-rtl.dev.css =================================================================== --- wp-admin/css/wp-admin-rtl.dev.css (revision 19625) +++ wp-admin/css/wp-admin-rtl.dev.css (working copy) @@ -1749,8 +1749,6 @@ #dashboard_right_now p.sub, #dashboard-widgets h4, a.rsswidget, -#dashboard_plugins h4, -#dashboard_plugins h5, #dashboard_recent_comments .comment-meta .approve { font-family: Tahoma, Arial; } @@ -1789,11 +1787,6 @@ clear: left; } -#dashboard_plugins .inside span { - padding-left: 0; - padding-right: 5px; -} - #dashboard-widgets h3 .postbox-title-action { right: auto; left: 30px; Index: wp-admin/css/wp-admin.dev.css =================================================================== --- wp-admin/css/wp-admin.dev.css (revision 19625) +++ wp-admin/css/wp-admin.dev.css (working copy) @@ -683,7 +683,6 @@ div.sidebar-name h3, #menu-management .nav-tab, -#dashboard_plugins h5, a.rsswidget, #dashboard_right_now td.b, #dashboard-widgets h4, @@ -5840,33 +5839,6 @@ content: '\2014'; } -/* Plugins */ -#dashboard_plugins h4 { - line-height: 1.7em; -} - -#dashboard_plugins h5 { - font-weight: normal; - font-size: 13px; - margin: 0; - display: inline; - line-height: 1.4em; -} - -#dashboard_plugins h5 a { - line-height: 1.4em; -} - -#dashboard_plugins .inside span { - font-size: 12px; - padding-left: 5px; -} - -#dashboard_plugins p { - margin: 0.3em 0 1.4em; - line-height: 1.4em; -} - .dashboard-comment-wrap { overflow: hidden; word-wrap: break-word; Index: wp-admin/css/ie-rtl.dev.css =================================================================== --- wp-admin/css/ie-rtl.dev.css (revision 19625) +++ wp-admin/css/ie-rtl.dev.css (working copy) @@ -103,14 +103,6 @@ margin-right: 335px !important; } -#dashboard_plugins { - direction: ltr; -} - -#dashboard_plugins h3.hndle { - direction: rtl; -} - #dashboard_incoming_links ul li, #dashboard_secondary ul li, #dashboard_primary ul li,