Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#38601 closed defect (bug) (fixed)

get_locale() declares unused $wpdb global

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by: swissspidy's profile swissspidy
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.7
Component: I18N Keywords: has-patch
Focuses: Cc:

Description

The get_locale() function declares the $wpdb global variable, but then does not interface with it in any way. It was added in r38976, and the code using it was later removed in r39005.

Recommend to remove it.

See: #29783

Attachments (1)

38601.patch (391 bytes) - added by johnjamesjacoby 8 years ago.

Download all attachments as: .zip

Change History (2)

#1 @swissspidy
8 years ago

  • Owner set to swissspidy
  • Resolution set to fixed
  • Status changed from new to closed

In 39067:

I18N: Remove unused $wpdb global from get_locale() after [39005].

Originally added in [38976], but reverted soon after.

Props johnjamesjacoby.
Fixes #38601.

Note: See TracTickets for help on using tickets.