Opened 4 years ago
Closed 4 years ago
#51892 closed defect (bug) (fixed)
Fix core_update_footer() for new Updates API
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.6 | Priority: | normal |
Severity: | normal | Version: | 5.6 |
Component: | Upgrade/Install | Keywords: | has-patch has-screenshots commit dev-reviewed |
Focuses: | Cc: |
Description (last modified by )
Fixes a regression in 5.6 with the changes in the new Updates API #meta5511.
The admin footer no longer displays the 'You are using a development version (%1$s). Cool! ...
message when using the WP_AUTO_UPDATE_CORE
constant set to update to beta
or rc
when the user is on a development version.
Attachments (6)
Change History (23)
#3
@
4 years ago
- Milestone changed from 5.6.1 to 5.6
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
#5
@
4 years ago
- Keywords commit added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for backporting to the 5.6 branch after a second committer's review.
#6
@
4 years ago
- Keywords dev-reviewed added; dev-feedback removed
[49708] looks good here, +1 to add to the 5.6 branch.
This ticket was mentioned in Slack in #core by pbiron. View the logs.
4 years ago
#11
@
4 years ago
For the context behind 51892.3.diff see this slack thread.
#12
@
4 years ago
Patch for alpha/beta/RC looks good to me.
For reference, it addresses the issue raised today in this thread in #core-auto-updates Slack channel.
#13
@
4 years ago
To summarize the Slack thread linked above, if get_preferred_from_update_core()
gets an empty response from get_core_updates()
, it returns an object with 'response' => 'latest'
and no other properties, so checking $cur->version
without making sure it exists can cause a PHP warning.
Checking $wp_version
instead would be more consistent with core_upgrade_preamble()
, see [49709] / #51822.
Additionally, $cur->url
is unused since [8595] and can be safely removed.
#15
@
4 years ago
- Keywords commit dev-feedback added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for backporting to the 5.6 branch after a second committer's review.
Thanks for the patch!
Since this is a regression and an easy fix, I think this is a good candidate for 5.6. Related: #51822.