Opened 6 months ago
Closed 6 months ago
#63732 closed task (blessed) (fixed)
Observation on Unused Global Variables in WordPress Core PHP Files
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | 6.7 |
| Component: | General | Keywords: | has-patch |
| Focuses: | docs | Cc: |
Description
Hello Team,
I have reviewed the WordPress core PHP files and noticed that some global variables are referenced in the comments but are not explicitly defined in the code itself.
So, I think that if these variables are not being used anywhere, they should be removed from the list to avoid confusion and keep the codebase clean.
Files:
wp-admin/includes/plugin.php
wp-includes/rss.php
wp-includes/update.php
Please review it and share your feedback.
Thanks,
Attachments (1)
Change History (5)
#1
@
6 months ago
- Keywords needs-testing dev-feedback 2nd-opinion removed
- Milestone changed from Awaiting Review to 6.9
- Owner set to johnjamesjacoby
- Status changed from new to assigned
- Type changed from defect (bug) to task (blessed)
Both wp-admin/includes/plugin.php and wp-includes/rss.php look OK to me.
wp-includes/update.php uses wp_get_wp_version() since r58813, so some references to the $wp_version global could be removed.
Note: See
TracTickets for help on using
tickets.
I have checked above mentioned issue and resolved it. Here, I have added my patch.