Make WordPress Core

Opened 8 years ago

Last modified 10 months ago

#40241 new defect (bug)

Showing wrong Core current version on the update page.

Reported by: thamaraiselvam's profile thamaraiselvam Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.3
Component: Upgrade/Install Keywords: has-patch needs-testing
Focuses: administration Cc:

Description

I am using development version 4.8-alpha-40312 but in the update page it shows stable version. 4.7.3

If you need to re-install version 4.7.3, you can do so here:

I checked in the wp-admin/update-core.php and found this

<?php
foreach ( (array) $updates as $update ) {
    echo '<li>';
    list_core_update( $update );
    echo '</li>';
}

This line $updates should be $updates[0] to get latest version on wordpress.

array (
  0 => 
  stdClass::__set_state(array(
     'response' => 'development',
     'download' => 'https://wordpress.org/nightly-builds/wordpress-latest.zip',
     'locale' => 'en_US',
     'packages' => 
    stdClass::__set_state(array(
       'full' => 'https://wordpress.org/nightly-builds/wordpress-latest.zip',
       'no_content' => false,
       'new_bundled' => false,
       'partial' => false,
       'rollback' => false,
    )),
     'current' => '4.8-alpha-40312',
     'version' => '4.8-alpha-40312',
     'php_version' => '5.2.4',
     'mysql_version' => '5.0',
     'new_bundled' => '4.7',
     'partial_version' => '',
     'dismissed' => false,
  )),
  1 => 
  stdClass::__set_state(array(
     'response' => 'latest',
     'download' => 'https://downloads.wordpress.org/release/wordpress-4.7.3.zip',
     'locale' => 'en_US',
     'packages' => 
    stdClass::__set_state(array(
       'full' => 'https://downloads.wordpress.org/release/wordpress-4.7.3.zip',
       'no_content' => 'https://downloads.wordpress.org/release/wordpress-4.7.3-no-content.zip',
       'new_bundled' => 'https://downloads.wordpress.org/release/wordpress-4.7.3-new-bundled.zip',
       'partial' => false,
       'rollback' => false,
    )),
     'current' => '4.7.3',
     'version' => '4.7.3',
     'php_version' => '5.2.4',
     'mysql_version' => '5.0',
     'new_bundled' => '4.7',
     'partial_version' => '',
     'dismissed' => false,
  )),
)

Attachments (1)

40241.patch (381 bytes) - added by thamaraiselvam 8 years ago.

Download all attachments as: .zip

Change History (8)

#1 @Presskopp
8 years ago

But above that you can install latest nightly

You are using a development version of WordPress. You can update to the latest nightly build automatically:

Update Now

!?

#2 @thamaraiselvam
8 years ago

No, it just install the stable version v4.7.3
but Do WordPress support downgrade option?

#3 @Presskopp
6 years ago

  • Keywords has-patch needs-testing added

#4 @bookdude13
5 years ago

Hey @thamaraiselvam, sorry for this issue not getting attention for a while.

I started looking into your patch, and I'm noticing that in trunk right now there is a version number for the dev version found at the bottom of the page. It's put there by src\wp-admin\includes\update.php line 253.

I agree that the language is confusing for the descriptions. Should this just be updating the text to say 'If you need to re-install release version %s, you can do so here:' ?

This ticket was mentioned in PR #5527 on WordPress/wordpress-develop by @shenyanzhi.


12 months ago
#5

The get_core_updates method will return false.

Trac ticket: https://core.trac.wordpress.org/ticket/40241

This ticket was mentioned in Slack in #core by shenyanzhi. View the logs.


10 months ago

This ticket was mentioned in Slack in #core by ironprogrammer. View the logs.


10 months ago

Note: See TracTickets for help on using tickets.