Index: trunk/wp-beta-tester.php =================================================================== --- trunk/wp-beta-tester.php (revision 756094) +++ trunk/wp-beta-tester.php (working copy) @@ -8,7 +8,7 @@ Author URI: http://blog.ftwr.co.uk/ License: GPL v2 or later */ -/* Copyright 2009-2011 Peter Westwood (email : peter.westwood@ftwr.co.uk) +/* Copyright 2009-2013 Peter Westwood (email : peter.westwood@ftwr.co.uk) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as @@ -26,7 +26,7 @@ class wp_beta_tester { var $real_wp_version; var $real_wpmu_version = false; - + function wp_beta_tester() { add_action('admin_init', array(&$this, 'action_admin_init')); add_action('admin_menu', array(&$this, 'action_admin_menu')); @@ -36,7 +36,7 @@ add_action('admin_head-plugins.php', array(&$this, 'action_admin_head_plugins_php')); add_action('admin_head-update-core.php', array(&$this, 'action_admin_head_plugins_php')); } - + function action_admin_head_plugins_php() { // Workaround the check throttling in wp_version_check() $st = get_site_transient( 'update_core' ); @@ -48,28 +48,28 @@ //Can output an error here if current config drives version backwards if ( $this->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') ) ?>

+

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

mangle_wp_version(), $url); if ( !empty($wpmu_version) ) // old 2.9.2 WPMU $url = str_replace('wpmu_version=' . $wpmu_version, 'wpmu_version=' . $this->mangle_wp_version(), $url); - + return wp_remote_get($url, $args); } elseif ( 0 !== strpos( $url, 'https://api.wordpress.org/plugins/' ) ) { return wp_remote_post($url, $args); @@ -91,12 +91,12 @@ return $result; } - + 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'); @@ -109,7 +109,7 @@ } return $preferred; } - + function mangle_wp_version(){ $stream = get_option('wp_beta_tester_stream','point'); $preferred = $this->_get_preferred_from_update_core(); @@ -137,7 +137,7 @@ } return $wp_version; } - + function check_if_settings_downgrade() { global $wp_version; $wp_real_version = explode('-', $wp_version); @@ -144,7 +144,7 @@ $wp_mangled_version = explode('-', $this->mangle_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'))) { @@ -164,23 +164,23 @@

-

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

+

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

+

Please note: There are no development builds of the beta stream you have choosen available, so you will receive 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'), +

back up 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://make.wordpress.org/core/', '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') ); ?>

- -

+

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

+ +

- +
+?> \ No newline at end of file