Ticket #21838: update-std-class.diff

File update-std-class.diff, 439 bytes (added by wonderboymusic, 8 months ago)
Line 
1Index: wp-admin/includes/update.php
2===================================================================
3--- wp-admin/includes/update.php        (revision 21787)
4+++ wp-admin/includes/update.php        (working copy)
5@@ -86,6 +86,9 @@
6                return sprintf( __( 'Version %s' ), $GLOBALS['wp_version'] );
7 
8        $cur = get_preferred_from_update_core();
9+       if ( empty( $cur ) )
10+               $cur = new stdClass;
11+       
12        if ( ! isset( $cur->current ) )
13                $cur->current = '';
14