check_if_settings_downgrade() ) { ?>

Error: Your current WordPress Beta Tester plugin configuration will downgrade your install to a previous version - Please reconfigure it.', 'wp-beta-tester'), admin_url('tools.php?page=wp_beta_tester') ) ?>

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'); } function _get_preferred_from_update_core() { if (!function_exists('get_preferred_from_update_core') ) require_once(ABSPATH . 'wp-admin/includes/update.php'); //Validate that we have api data and if not get the normal data so we always have it. $preferred = get_preferred_from_update_core(); if (false === $preferred) { wp_version_check(); $preferred = get_preferred_from_update_core(); } return $preferred; } /** * 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 = $this->_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 = $this->_get_preferred_from_update_core(); switch ($stream) { case 'point': $wp_version = $preferred->current . '.0-wp-beta-tester'; break; case 'unstable': $versions = explode('.', $preferred->current); $versions[1] += 1; if (10 == $versions[1]) { $versions[0] += 1; $versions[1] = 0; } $wp_version = $versions[0] . '.' . $versions[1] . '-wp-beta-tester'; //Support for WordPress mu 2.9.2 -> 3.0 RC if ( isset($GLOBALS['wpmu_version'] ) ) { $this->real_wpmu_version = $GLOBALS['wpmu_version']; $GLOBALS['wpmu_version'] = $wp_version; } break; } } function restore_wp_version() { global $wp_version; $wp_version = $this->real_wp_version; //Support for WordPress mu 2.9.2 -> 3.0 RC if ( $this->real_wpmu_version != false ) { $this->real_wpmu_version = $GLOBALS['wpmu_version']; $GLOBALS['wpmu_version'] = $wp_version; } } function check_if_settings_downgrade() { global $wp_version; $this->restore_wp_version(); $wp_real_version = explode('-', $wp_version); $this->mangle_wp_version(); $wp_mangled_version = explode('-', $wp_version); $this->restore_wp_version(); return version_compare($wp_mangled_version[0], $wp_real_version[0], 'lt'); } function validate_setting($setting) { if (!in_array($setting, array('point','unstable'))) { $setting = 'point'; } return $setting; } function display_page() { if (!current_user_can('update_plugins')) { wp_die( __('You do not have sufficient permissions to access this page.') ); } $preferred = $this->_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'); ?>

action_admin_head_plugins_php(); //Check configuration?>

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'), _x('http://codex.wordpress.org/Backing_Up_Your_Database', 'Url to database backup instructions', 'wp-beta-tester'), _x('http://wordpress.org/development/', 'Url to development blog','wp-beta-tester'), _x('http://wordpress.org/support/forum/12', 'Url to beta support forum', 'wp-beta-tester') ); ?>

report any bugs you find.', 'wp-beta-tester'), _x('http://core.trac.wordpress.org/newticket', 'Url to raise a new trac ticket', 'wp-beta-tester') ); ?>

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'); ?>