Use WordPress 2.7 Offline

The coming WordPress Version 2.7 has the popular required core update included. You can already try out the functions.

But sometimes you don't want or can't work online. Here is a little workaround how to develop with WordPress 2.7 Beta offline.

Since you cannot enter the backend I suggest to comment out a hook in /wp-includes/update.php .

add_action( 'init', 'wp_version_check' );
...
add_action( 'load-plugins.php', 'wp_update_plugins' );
add_action( 'admin_init', '_maybe_update_plugins' );

After that you can enter the backend without problems. Everybody who works daily with it and gets the newest update, which makes sense if you use SVN, doesn't want to comment out this entry every time.

Alternative you can use a Plugin. You can copy and use an easy and fast variant below. Just paste it in your Plugin folder and activate. Then you can irreversible the change in update.php and there won't be a version check anymore.

<?php
/**
 * @package WP Offline
 * @author Frank Bültge
 * @version 0.5
 */

/*
Plugin Name: WP Offline
Plugin URI: http://bueltge.de/wordpress-27-offline-nutzen/710/
Description: Deactivate autoupdate for core, plugins and themes
Version: 0.5
Author: Frank Bültge
Author URI: http://bueltge.de/
Last Change: 04.01.2011
*/

remove_action( 'admin_init', '_maybe_update_core' );
remove_action( 'wp_version_check', 'wp_version_check' );
wp_clear_scheduled_hook( 'wp_version_check' );

remove_action( 'load-plugins.php', 'wp_update_plugins' );
remove_action( 'load-update.php', 'wp_update_plugins' );
remove_action( 'load-update-core.php', 'wp_update_plugins' );
remove_action( 'admin_init', '_maybe_update_plugins' );
remove_action( 'wp_update_plugins', 'wp_update_plugins' );
wp_clear_scheduled_hook( 'wp_update_plugins' );

remove_action( 'load-themes.php', 'wp_update_themes' );
remove_action( 'load-update.php', 'wp_update_themes' );
remove_action( 'load-update-core.php', 'wp_update_themes' );
remove_action( 'admin_init', '_maybe_update_themes' );
remove_action( 'wp_update_themes', 'wp_update_themes' );
wp_clear_scheduled_hook( 'wp_update_themes' );

remove_action('init', 'wp_schedule_update_checks');
?>

The currect version can xou found on github - https://github.com/bueltge/WP-Offline