Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Aug 11, 2023
2 parents 6c4d08f + 32b4cbb commit 0ee0f4e
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 53 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[unreleased]

#### 3.5.3 / 2023-08-10
* update for changed standalone afragen/test-reports plugin
* set actual next beta/RC in messaging

#### 3.5.2 / 2023-07-12
* fix dev-notes URL

Expand Down
56 changes: 30 additions & 26 deletions languages/wordpress-beta-tester.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: WordPress Beta Tester 3.5.0\n"
"Project-Id-Version: WordPress Beta Tester 3.5.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordpress-beta-tester\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-06-30T15:04:37+00:00\n"
"POT-Creation-Date: 2023-08-11T01:01:28+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.8.1\n"
"X-Domain: wordpress-beta-tester\n"
Expand Down Expand Up @@ -207,51 +207,55 @@ msgid "This is for the Release Candidate releases only of the selected channel."
msgstr ""

#. translators: %s: version number
#: src/WPBT/WPBT_Core.php:378
#: src/WPBT/WPBT_Core.php:387
msgid "version %s"
msgstr ""

#: src/WPBT/WPBT_Core.php:384
#: src/WPBT/WPBT_Core.php:393
msgid "next development version"
msgstr ""

#. translators: %l: next version numbers
#: src/WPBT/WPBT_Core.php:389
#: src/WPBT/WPBT_Core.php:398
msgid "version %l"
msgstr ""

#. translators: %l: next version numbers
#: src/WPBT/WPBT_Core.php:389
#: src/WPBT/WPBT_Core.php:398
msgid "whichever is released first"
msgstr ""

#. translators: Used to join items in a list with more than 2 items.
#: src/WPBT/WPBT_Core.php:480
#: src/WPBT/WPBT_Core.php:492
msgid "%1$s, %2$s"
msgstr ""

#. translators: Used to join last two items in a list with more than 2 times.
#: src/WPBT/WPBT_Core.php:482
#: src/WPBT/WPBT_Core.php:494
msgid "%1$s, or %2$s"
msgstr ""

#. translators: Used to join items in a list with only 2 items.
#: src/WPBT/WPBT_Core.php:484
#: src/WPBT/WPBT_Core.php:496
msgid "%1$s or %2$s"
msgstr ""

#: src/WPBT/WPBT_Extras.php:74
#: src/WPBT/WPBT_Extras.php:60
msgid "Extra Settings"
msgstr ""

#: src/WPBT/WPBT_Extras.php:104
#: src/WPBT/WPBT_Extras.php:90
msgid "Skip successful autoupdate emails."
msgstr ""

#: src/WPBT/WPBT_Extras.php:105
#: src/WPBT/WPBT_Extras.php:91
msgid "Disable sending emails to the admin user for successful autoupdates. Only emails indicating failures of the autoupdate process are sent."
msgstr ""

#: src/WPBT/WPBT_Extras.php:103
msgid "Hide Report a Bug feature."
msgstr ""

#: src/WPBT/WPBT_Help.php:37
msgid "<a href=\"https://make.wordpress.org/core/handbook/testing/beta-testing/\">Beta Testing</a>"
msgstr ""
Expand Down Expand Up @@ -285,25 +289,25 @@ msgstr ""
msgid "A dashboard widget is displayed when the plugin is active. It will contain links to milestone commits and filing a bug report. It may contain links to Dev Notes, the Field Guide, and beta/RC release posts."
msgstr ""

#: src/WPBT/WPBT_Settings.php:82
#: src/WPBT/WPBT_Settings.php:260
#: src/WPBT/WPBT_Settings.php:90
#: src/WPBT/WPBT_Settings.php:268
msgid "Beta Testing WordPress"
msgstr ""

#: src/WPBT/WPBT_Settings.php:83
#: src/WPBT/WPBT_Settings.php:91
msgctxt "Menu item"
msgid "Beta Testing"
msgstr ""

#: src/WPBT/WPBT_Settings.php:228
#: src/WPBT/WPBT_Settings.php:236
msgid "Saved."
msgstr ""

#: src/WPBT/WPBT_Settings.php:229
#: src/WPBT/WPBT_Settings.php:237
msgid "Perhaps you should head on over and <a href=\"update-core.php\">upgrade now</a>."
msgstr ""

#: src/WPBT/WPBT_Settings.php:263
#: src/WPBT/WPBT_Settings.php:271
msgid "<strong>Please note:</strong> Once you have switched your website 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."
msgstr ""

Expand All @@ -312,41 +316,41 @@ msgstr ""
msgid "<strong>Warning:</strong> Your current <a href=\"%s\">WordPress Beta Tester plugin configuration</a> will downgrade your installation to a previous version - please reconfigure it."
msgstr ""

#: src/WPBT/WP_Beta_Tester.php:346
#: src/WPBT/WP_Beta_Tester.php:290
msgid "WordPress Beta Testing"
msgstr ""

#. translators: %s: WordPress version
#: src/WPBT/WP_Beta_Tester.php:374
#: src/WPBT/WP_Beta_Tester.php:329
msgid "Please help test <strong>WordPress %s</strong>."
msgstr ""

#. translators: %1: link to closed and reopened trac tickets on current milestone
#: src/WPBT/WP_Beta_Tester.php:380
#: src/WPBT/WP_Beta_Tester.php:335
msgid "Here are the <a href=\"%s\" target=\"_blank\">commits for the milestone</a>."
msgstr ""

#. translators: %s: link to Report a Bug tab
#: src/WPBT/WP_Beta_Tester.php:383
#: src/WPBT/WP_Beta_Tester.php:338
msgid "Found a bug? <a href=\"%s\">Report it</a>!"
msgstr ""

#. translators: %s: update version
#: src/WPBT/WP_Beta_Tester.php:392
#: src/WPBT/WP_Beta_Tester.php:347
msgid "Currently your site is set to update to <strong>%s</strong>."
msgstr ""

#. translators: %s: WP Beta Tester settings URL
#: src/WPBT/WP_Beta_Tester.php:398
#: src/WPBT/WP_Beta_Tester.php:353
msgid "Head over to your <a href=\"%s\">WordPress Beta Tester Settings</a> and make sure the <strong>beta/RC</strong> stream is selected."
msgstr ""

#. translators: %s: Milestone version
#: src/WPBT/WP_Beta_Tester.php:454
#: src/WPBT/WP_Beta_Tester.php:409
msgid "WordPress %s Dev Notes"
msgstr ""

#. translators: %s: Milestone version
#: src/WPBT/WP_Beta_Tester.php:464
#: src/WPBT/WP_Beta_Tester.php:419
msgid "WordPress %s Field Guide"
msgstr ""
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ License URI: https://www.opensource.org/licenses/GPL-2.0
Requires at least: 3.1
Requires PHP: 5.6
Tested up to: 6.3
Stable Tag: 3.5.2
Stable Tag: 3.5.3

Allows you to easily upgrade for testing the next versions of WordPress.

Expand Down Expand Up @@ -40,6 +40,10 @@ PRs are welcome on [GitHub](https://github.com/afragen/wordpress-beta-tester).

## Changelog

#### 3.5.3 / 2023-08-10
* update for changed standalone afragen/test-reports plugin
* set actual next beta/RC in messaging

#### 3.5.2 / 2023-07-12
* fix dev-notes URL

Expand Down
20 changes: 16 additions & 4 deletions src/WPBT/WPBT_Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,15 @@ public function get_next_version( $preferred_version ) {
$beta_rc = ! empty( self::$options['stream-option'] );
$next_version = $this->calculate_next_versions();

// Try to set actual next beta/RC.
if ( ( isset( $next_version['beta'] ) && version_compare( $next_version['preferred'], $next_version['beta'], '<' ) )
|| ( isset( $next_version['rc'] ) && version_compare( $next_version['preferred'], $next_version['rc'], '<' ) )
) {
unset( $next_version['preferred'] );
} else {
unset( $next_version['beta'], $next_version['rc'] );
}

// Site is not on a beta/RC stream so use the preferred version.
if ( ! $beta_rc && ! empty( $next_version ) && ! self::$core_update_stream_constant ) {
/* translators: %s: version number */
Expand Down Expand Up @@ -405,6 +414,7 @@ public function calculate_next_versions() {
$current_release = $this->wp_beta_tester->get_current_wp_release();
$next_release = array_map( 'intval', explode( '.', $current_release ) );
$is_development_version = preg_match( '/alpha|beta|RC/', $wp_version );
$preferred = $this->wp_beta_tester->get_preferred_from_update_core();

// User on a current release.
if ( ! $is_development_version ) {
Expand Down Expand Up @@ -448,11 +458,13 @@ public function calculate_next_versions() {
}

$next_versions = array(
'point' => $next_point,
'beta' => $exploded_version[0] . '-beta' . $next_beta,
'rc' => $exploded_version[0] . '-RC' . $next_rc,
'release' => $exploded_version[0],
'point' => $next_point,
'beta' => $exploded_version[0] . '-beta' . $next_beta,
'rc' => $exploded_version[0] . '-RC' . $next_rc,
'preferred' => isset( $preferred->version ) ? $preferred->version : 0,
'release' => $exploded_version[0],
);

if ( ! $next_versions['beta'] || 'rc' === self::$options['stream-option']
|| 'rc' === self::$core_update_stream_constant || 1 < $next_rc
) {
Expand Down
29 changes: 10 additions & 19 deletions src/WPBT/WP_Beta_Tester.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,18 +308,18 @@ public function beta_tester_dashboard() {
$update_version = ( new WPBT_Core( $this, self::$options ) )->get_next_version( $preferred->version );
$report_url = '';

if ( ! apply_filters( 'wpbt_hide_report_a_bug', false ) ) {
$report_url = add_query_arg(
array(
'page' => 'wp-beta-tester',
'tab' => 'wp_beta_tester_bug_report',
),
is_multisite() ? network_admin_url( 'settings.php' ) : admin_url( 'tools.php' )
);
} elseif ( is_plugin_active( 'report-a-bug/report-a-bug.php' ) ) {
$report_url = add_query_arg(
array(
'page' => 'wp-beta-tester',
'tab' => 'wp_beta_tester_bug_report',
),
is_multisite() ? network_admin_url( 'settings.php' ) : admin_url( 'tools.php' )
);

if ( is_plugin_active( 'test-reports/wp-test-reports.php' ) ) {
$report_url = add_query_arg(
array(
'page' => 'report-a-bug',
'page' => 'wp-test-reports',
),
is_multisite() ? network_admin_url( 'settings.php' ) : admin_url( 'tools.php' )
);
Expand All @@ -334,15 +334,6 @@ public function beta_tester_dashboard() {
/* translators: %1: link to closed and reopened trac tickets on current milestone */
printf( wp_kses_post( '<p>' . __( 'Here are the <a href="%s" target="_blank">commits for the milestone</a>.', 'wordpress-beta-tester' ) . '</p>' ), esc_url( "https://core.trac.wordpress.org/query?status=closed&status=reopened&milestone=$milestone" ) );

if ( empty( $report_url ) ) {
$report_url = add_query_arg(
array(
'page' => 'wp-beta-tester',
'tab' => 'wp_beta_tester_extras',
),
is_multisite() ? network_admin_url( 'settings.php' ) : admin_url( 'tools.php' )
);
}
/* translators: %s: link to Report a Bug tab */
printf( wp_kses_post( '<p>' . "&nbsp;$bug&nbsp;" . __( 'Found a bug? <a href="%s">Report it</a>!', 'wordpress-beta-tester' ) . '</p>' ), esc_url( $report_url ) );

Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'afragen/wordpress-beta-tester',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '2c2b2dfccebe20c6fefc44e39416c4670038e13e',
'reference' => '6c4d08f0ea03b18687691117a4a1bcc0e84b65d0',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'afragen/wordpress-beta-tester' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '2c2b2dfccebe20c6fefc44e39416c4670038e13e',
'reference' => '6c4d08f0ea03b18687691117a4a1bcc0e84b65d0',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down
2 changes: 1 addition & 1 deletion wp-beta-tester.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Plugin URI: https://wordpress.org/plugins/wordpress-beta-tester/
* Description: Allows you to easily upgrade to Beta releases.
* Author: WordPress Upgrade/Install Team
* Version: 3.5.2
* Version: 3.5.3
* Network: true
* Author URI: https://make.wordpress.org/core/components/upgrade-install/
* Text Domain: wordpress-beta-tester
Expand Down

0 comments on commit 0ee0f4e

Please sign in to comment.