Opened 13 years ago
Closed 12 years ago
#25887 closed defect (bug) (fixed)
$comparison is unused in maintenance_nag()
| Reported by: | SergeyBiryukov | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7.2 |
| Component: | Upgrade/Install | Version: | 3.7 |
| Severity: | normal | Keywords: | has-patch commit fixed-major |
| Cc: | Focuses: |
Description
Noticed while working on #14028.
There's a line in maintenance_nag() that is supposed to change the comparison type in version_compare() in the next line (see the comment above): tags/3.7.1/src/wp-admin/includes/update.php#L356.
However, $comparison is unused, so it doesn't actually change anything.
Attachments (1)
Change History (7)
#3
@
13 years ago
I think this might be the cause of Viper007Bond's issue in #14028 actually.
The nag is only supposed to show for $attempted == $wp_version when a critical failure occurs, currently it shows even when a non-critical error occurs (such as aborting early due to files not writable).
The change appears correct.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Introduced in [25872].