[wp-trac] [WordPress Trac] #38601: get_locale() declares unused $wpdb global

WordPress Trac noreply at wordpress.org
Tue Nov 1 02:29:50 UTC 2016


#38601: get_locale() declares unused $wpdb global
-----------------------------+-----------------------
 Reporter:  johnjamesjacoby  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  4.7
Component:  I18N             |    Version:  trunk
 Severity:  normal           |   Keywords:  has-patch
  Focuses:                   |
-----------------------------+-----------------------
 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

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


More information about the wp-trac mailing list