deliciousbrains / better-search-replace

A simple plugin for updating URLs or other text in a database.
https://bettersearchreplace.com
GNU General Public License v3.0
86 stars 36 forks source link

Can't use WP_LANG constant to check locale #17

Closed mattgrshaw closed 9 years ago

mattgrshaw commented 9 years ago

This was deprecated with a recent release of WordPress, we should use WordPress core function get_locale() instead.

This is currently causing the language in the debug info to pull US if the constant hasn't been defined.

mattgrshaw commented 9 years ago

Tested and working well.