Opened 6 years ago
Closed 4 years ago
#44932 closed defect (bug) (fixed)
use $wp_version instead of $GLOBALS['wp_version']
Reported by: | Jaydeep Rami | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | coding-standards | Cc: |
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
@
4 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.
Fix: Ticket #44932