action_wp_version_check(); } function action_wp_version_check() { $this->mangle_wp_version(); wp_version_check(); $this->restore_wp_version(); $this->validate_upgrade_info(); } function action__maybe_update_core() { $this->mangle_wp_version(); _maybe_update_core(); $this->restore_wp_version(); $this->validate_upgrade_info(); } function action_update_option_wp_beta_tester_stream() { //Our option has changed so update the cached information pronto. do_action('wp_version_check'); } /** * Validate the current upgrade info after we have tried to get a nightly version * * If its not valid get the update info for the default version */ function validate_upgrade_info() { $preferred = get_preferred_from_update_core(); $head = wp_remote_head($preferred->package); if ( '404' == wp_remote_retrieve_response_code($head) ) { wp_version_check(); } } function mangle_wp_version(){ global $wp_version; $this->real_wp_version = $wp_version; $stream = get_option('wp_beta_tester_stream','point'); $preferred = get_preferred_from_update_core(); switch ($stream) { case 'point': $wp_version = $preferred->current . '.0-wp-beta-tester'; break; case 'unstable': $versions = explode('.', $preferred->current); $wp_version = $versions[0] . '.' . $versions[1]+1 . '-wp-beta-tester'; break; } } function restore_wp_version() { global $wp_version; $wp_version = $this->real_wp_version; } function validate_setting($setting) { if (!in_array($setting, array('point','unstable'))) { $setting = 'point'; } return $setting; } function display_page() { if (!current_user_can('manage_options')) { wp_die( __('You do not have sufficient permissions to access this page.') ); } $preferred = get_preferred_from_update_core(); ?>

Please note: Once you have switched your blog to one of these beta versions of software it will not always be possible to downgrade as the database structure maybe updated during the development of a major release.', 'wp-beta-tester'); ?>

response) : ?>

Please note: There are no development builds of the beta stream you have choosen available so you will receieve normal update notifications.', 'wp-beta-tester'); ?>

backup your database before upgrading to a test release. In order to hear about the latest beta releases your best bet is to watch the development blog and the beta forum','wp-beta-tester'), 'http://codex.wordpress.org/Backing_Up_Your_Database', 'http://wordpress.org/development/', 'http://wordpress.org/support/forum/12'); ?>

report any bugs you find.','wp-beta-tester'), 'http://core.trac.wordpress.org/newticket' ); ?>

*/ ?>
Only use this if you really know what you are doing.','wp-beta-tester'); ?>

head on over and upgrade now.','wp-beta-tester' ), 'update-core.php'); ?>