Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#22055 closed enhancement (invalid)

in wp-activate.php variable $wp_object_cache should be declared before being used

Reported by: nunomorgadinho Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:


Minor stuff but $wp_object_cache should be declared before being used in wp-activate.php.

Attachments (1)

wp-activate.php.diff (287 bytes) - added by nunomorgadinho 3 years ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version trunk deleted

It's declared in wp-includes/cache.php, which is included earlier along with other WordPress environment.

In wp-activate.php, it's only used in global scope, so there's no need to declare it as global.

Version 0, edited 3 years ago by SergeyBiryukov (next)
Note: See TracTickets for help on using tickets.