Opened 8 years ago
Closed 6 years ago
#44932 closed defect (bug) (fixed)
use $wp_version instead of $GLOBALS['wp_version']
| Reported by: | Jaydeep Rami | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.6 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | coding-standards |
Description
I found that in Core we have declared @global $wp_option parameter in PHPDoc but not used it in the function. Instead of that used $GLOBALS['wp_version'].
It's correct but better to use $wp_version.
https://develop.svn.wordpress.org/trunk/src/wp-includes/default-constants.php
Attachments (3)
Change History (11)
#6
@
6 years ago
Thanks @jaydeep-rami!
Your patch 44932.2.patch applies, but I updated it in 44932.3.patch to keep the spaces added in changeset:45203.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fix: Ticket #44932