[wp-trac] [WordPress Trac] #40241: Showing wrong Core current version on the update page.
WordPress Trac
noreply at wordpress.org
Thu Mar 23 15:47:45 UTC 2017
#40241: Showing wrong Core current version on the update page.
-----------------------------+-----------------------------
Reporter: thamaraiselvam | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 4.7.3
Severity: normal | Keywords:
Focuses: administration |
-----------------------------+-----------------------------
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
<?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,
)),
)
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40241>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list