action_wp_version_check(); } function action_wp_version_check() { $this->mangle_wp_version(); wp_version_check(); $this->restore_wp_version(); } function action__maybe_update_core() { $this->mangle_wp_version(); _maybe_update_core(); $this->restore_wp_version(); } function action_update_option_wp_beta_tester_stream() { //Our option has changed so update the cached information pronto. do_action(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.') ); } ?>
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'); ?>
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' ); ?>
head on over and upgrade now.','wp-beta-tester' ), 'update-core.php'); ?>