Opened 8 months ago
Closed 8 months ago
#22055 closed enhancement (invalid)
in wp-activate.php variable $wp_object_cache should be declared before being used
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Minor stuff but $wp_object_cache should be declared before being used in wp-activate.php.
Attachments (1)
Change History (2)
nunomorgadinho — 8 months ago
comment:1
SergeyBiryukov — 8 months ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
- Version trunk deleted
Note: See
TracTickets for help on using
tickets.

It's declared in wp-includes/cache.php, which is included earlier as a part of WordPress environment.
In wp-activate.php, it's only used in global scope, so there's no need to declare it as global.