Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#34868 closed defect (bug) (fixed)

Use unmodified $wp_version in wp-includes/update.php

Reported by: nacin's profile nacin Owned by: nacin's profile nacin
Milestone: 4.5 Priority: normal
Severity: normal Version: 4.3
Component: Upgrade/Install Keywords:
Focuses: Cc:

Description

[32635] (4.3) accidentally started globalizing $wp_version in wp_version_check() and related functions.

What ends up happening is it becomes global, then including wp-includes/version.php actually overrides the global. Thus, the right information gets reported back to WordPress.org, and the rest of the pageload has an unadulterated $wp_version.

We should still change this back to avoid stomping the global unnecessarily.

Change History (5)

#1 @nacin
9 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 35779:

Updates: Avoid stomping global $wp_version in wp_version_check() and related.

fixes #34868.

#2 @johnbillion
9 years ago

  • Keywords fixed-major added
  • Milestone changed from 4.5 to 4.4.1
  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Version set to 4.3

#3 @dd32
9 years ago

As this went unnoticed in 4.3, and doesn't actually cause any major issues IMHO I don't think this really needs backporting.

#4 @dd32
9 years ago

  • Keywords fixed-major removed
  • Milestone changed from 4.4.1 to 4.5
  • Resolution set to fixed
  • Status changed from reopened to closed

#5 @DavidAnderson
9 years ago

Relevant: #30499 - the WP version ought to be available as a constant.

Note: See TracTickets for help on using tickets.