Do not count Development versions of WordPress as having a core-update available. See #12517
git-svn-id: https://develop.svn.wordpress.org/trunk@13603 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0dbad6d7b5
commit
d54c6651b9
@ -58,7 +58,7 @@ if ( is_multisite() || is_super_admin() ) {
|
|||||||
if ( !empty($update_themes->response) )
|
if ( !empty($update_themes->response) )
|
||||||
$update_count += count( $update_themes->response );
|
$update_count += count( $update_themes->response );
|
||||||
$update_wordpress = get_core_updates( array('dismissed' => false) );
|
$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++;
|
$update_count++;
|
||||||
|
|
||||||
unset($update_plugins, $update_themes, $update_wordpress);
|
unset($update_plugins, $update_themes, $update_wordpress);
|
||||||
|
Loading…
Reference in New Issue
Block a user