From f6fee10d90a08d2fef785bf2ef5b0b5fb3bfd9e2 Mon Sep 17 00:00:00 2001 From: dd32 Date: Sat, 6 Mar 2010 08:42:04 +0000 Subject: [PATCH] Do not count Development versions of WordPress as having a core-update available. See #12517 git-svn-id: http://svn.automattic.com/wordpress/trunk@13603 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index 4ca140bd52..f6459c63ae 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -58,7 +58,7 @@ if ( is_multisite() || is_super_admin() ) { if ( !empty($update_themes->response) ) $update_count += count( $update_themes->response ); $update_wordpress = get_core_updates( array('dismissed' => false) ); - if ( !empty($update_wordpress) && !in_array( $update_wordpress[0]->response, array(/*'development',*/ 'latest') ) ) // @TODO: Do we count Development installs as having an update available? + if ( !empty($update_wordpress) && !in_array( $update_wordpress[0]->response, array('development', 'latest') ) ) $update_count++; unset($update_plugins, $update_themes, $update_wordpress);