[wp-trac] [WordPress Trac] #63732: Observation on Unused Global Variables in WordPress Core PHP Files

WordPress Trac noreply at wordpress.org
Mon Jul 21 19:01:28 UTC 2025


#63732: Observation on Unused Global Variables in WordPress Core PHP Files
----------------------------+------------------------------
 Reporter:  viralsampat     |       Owner:  johnjamesjacoby
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  6.9
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  docs
----------------------------+------------------------------
Changes (by johnjamesjacoby):

 * keywords:  needs-testing dev-feedback 2nd-opinion has-patch => has-patch
 * owner:  (none) => johnjamesjacoby
 * type:  defect (bug) => task (blessed)
 * status:  new => assigned
 * milestone:  Awaiting Review => 6.9


Comment:

 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63732#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list