diff -u wordpress-2.3.3/debian/changelog wordpress-2.3.3/debian/changelog --- wordpress-2.3.3/debian/changelog +++ wordpress-2.3.3/debian/changelog @@ -1,3 +1,9 @@ +wordpress (2.3.3-1ubuntu2) hardy-proposed; urgency=low + + * suppress the "new release available. please update" warning. LP: #227547 + + -- Rolf Leggewie Fri, 14 Nov 2008 16:54:29 +0100 + wordpress (2.3.3-1ubuntu1) hardy; urgency=low * Merge from Debian unstable (LP: #189481), Ubuntu remaining changes: only in patch2: unchanged: --- wordpress-2.3.3.orig/wp-admin/includes/update.php +++ wordpress-2.3.3/wp-admin/includes/update.php @@ -3,25 +3,8 @@ // The admin side of our 1.0 update system function core_update_footer( $msg ) { - if ( !current_user_can('manage_options') ) - return sprintf( '| '.__( 'Version %s' ), $GLOBALS['wp_version'] ); - - $cur = get_option( 'update_core' ); - - switch ( $cur->response ) { - case 'development' : - return sprintf( '| '.__( 'You are using a development version (%s). Cool! Please stay updated.' ), $GLOBALS['wp_version'], 'http://wordpress.org/download/svn/' ); - break; - - case 'upgrade' : - return sprintf( '| '.__( 'Your WordPress %s is out of date. Please update.' ).'', $GLOBALS['wp_version'], $cur->url ); - break; - - case 'latest' : - default : - return sprintf( '| '.__( 'Version %s' ), $GLOBALS['wp_version'] ); - break; - } + // updates are managed by the distribution, no need for a warning + return sprintf( '| '.__( 'Version %s' ), $GLOBALS['wp_version'] ); } add_filter( 'update_footer', 'core_update_footer' ); @@ -38,7 +21,8 @@ echo "
$msg
"; } -add_action( 'admin_notices', 'update_nag', 3 ); +// # updates are managed by the distribution, no need for a warning message +//add_action( 'admin_notices', 'update_nag', 3 ); function wp_update_plugins() { global $wp_version;