WordPress.org

Make WordPress Core

Opened 15 months ago

Last modified 11 months ago

#44932 assigned defect (bug)

use $wp_version instead of $GLOBALS['wp_version']

Reported by: Jaydeep Rami Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: coding-standards Cc:
PR Number:

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 (2)

44932.patch (947 bytes) - added by Jaydeep Rami 15 months ago.
Fix: Ticket #44932
44932.2.patch (959 bytes) - added by Jaydeep Rami 15 months ago.
Fix: Ticket #44932 create with src/ path

Download all attachments as: .zip

Change History (7)

@Jaydeep Rami
15 months ago

Fix: Ticket #44932

#1 @Jaydeep Rami
15 months ago

  • Keywords has-patch added; needs-patch removed

@Jaydeep Rami
15 months ago

Fix: Ticket #44932 create with src/ path

#2 @Jaydeep Rami
15 months ago

  • Focuses coding-standards added; docs removed

#3 @mukesh27
15 months ago

  • Keywords has-screenshots added

#4 @mukesh27
15 months ago

  • Keywords has-screenshots removed

#5 @pento
11 months ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.