Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#38601 closed defect (bug) (fixed)

get_locale() declares unused $wpdb global

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

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 10 years ago.

Download all attachments as: .zip

Change History (2)

#1 @swissspidy
10 years ago

  • Owner set to swissspidy
  • Resolution → fixed
  • Status new → 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.