[wp-trac] [WordPress Trac] #44932: use $wp_version instead of $GLOBALS['wp_version']

WordPress Trac noreply at wordpress.org
Tue Sep 11 17:18:32 UTC 2018


#44932: use $wp_version instead of $GLOBALS['wp_version']
--------------------------+-----------------------------
 Reporter:  Jaydeep Rami  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  assigned
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44932>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list