I just got nagged by the Wordpress software to "upgrade!" - what is up with that? I don't get software directly from them, I use debian's repositories. Grrr! And I also modify Wordpress to suit my own needs! Guess what - they are dialing back to Wordpress.org without my consent!
That's not cool, and there is no way to turn it off via the management interface.
Smooth move people...Here's how I fixed it:
That's not cool, and there is no way to turn it off via the management interface.
grep -r 'wordpress.org' ./* | grep fsock./wp-admin/includes/.svn/text-base/update.php.svn-base: if( false != ( $fs = @fsockopen( 'api.wordpress.org', 80, $errno, $errstr, 3) ) && is_resource($fs) ) {./wp-admin/includes/update.php: if( false != ( $fs = @fsockopen( 'api.wordpress.org', 80, $errno, $errstr, 3) ) && is_resource($fs) ) {./wp-includes/.svn/text-base/update.php.svn-base: if ( false !== ( $fs = @fsockopen( 'api.wordpress.org', 80, $errno, $errstr, 3 ) ) && is_resource($fs) ) {./wp-includes/update.php: if ( false !== ( $fs = @fsockopen( 'api.wordpress.org', 80, $errno, $errstr, 3 ) ) && is_resource($fs) ) {
Smooth move people...Here's how I fixed it:
Index: includes/update.php
===================================================================
---includes/update.php (revision 222)
+++ includes/update.php (working copy)
@@ -13,7 +13,7 @@
return sprintf( '| '.__( 'You are using a development version (%s). Cool! Please <a href="%s">stay updated</a>.' ), $GLOBALS['wp_version'], 'http://wordpress.org/download/svn/' ); break;
- case 'upgrade' :
+ case 'nupgrade' : return sprintf( '| <strong>'.__( 'Your WordPress %s is out of date. <a href="%s">Please update</a>.' ).'</strong>', $GLOBALS['wp_version'], $cur->url ); break;
@@ -36,15 +36,15 @@
else $msg = __('A new version of WordPress is available! Please notify the site administrator.');
- echo "</code><div id="update-nag">$msg</div>";
+ //echo "<div id="update-nag">$msg</div>"; } add_action( 'admin_notices', 'update_nag', 3 ); function wp_update_plugins() { global $wp_version;
- if ( !function_exists('fsockopen') )
- return false;
+ //if ( !function_exists('fsockopen') )
+ return false;
$plugins = get_plugins();
$active = get_option( 'active_plugins' );
