[wp-trac] [WordPress Trac] #52513: Display version number in `update-core.php` Update button for beta/RC

WordPress Trac noreply at wordpress.org
Mon Mar 1 17:47:02 UTC 2021


#52513: Display version number in `update-core.php` Update button for beta/RC
-------------------------------------------------+-------------------------
 Reporter:  afragen                              |       Owner:  afragen
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.8
Component:  Upgrade/Install                      |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-screenshots needs-     |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by afragen):

 This should only effect non-nightly releases.

 Easiest way to test is when using the Beta Tester plugin, uncomment the
 line in `WP_Beta_Tester::filter_http_request() - line 165` and replace the
 data in the array with a "next version" to test.

 `$url = add_query_arg( 'pretend_releases', array( '5.7-RC2' ), $url );`

 Then go to update-core.php

 The [attachment:"update-RC.png"] shows what a next RC release would look
 like, this screenshot was taken during beta cycle.

 [attachment:"release.png"] shows what it will look like during the release
 to 5.7

 Anything matching the `prep_match()` will display [attachment:"update-
 nightly.png"] as the version will be something like `5.7-RC1-12345` and
 this would designate a nightly.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52513#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list