Title: Propose a fix for bug
Last modified: February 19, 2018

---

# Propose a fix for bug

 *  Resolved [Yuriy](https://wordpress.org/support/users/yuchiko/)
 * (@yuchiko)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/propose-a-fix-for-bug/)
 * in your file src/admin/RootController.php on line 73
    You checked `get_user_locale`
   This function appears only on WP 4.7.0 so on the earlier version, we have an 
   error I think you should check WP version on this lines and use `get_locale()`
   if the current version lower than 4.7.0
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpropose-a-fix-for-bug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/propose-a-fix-for-bug/#post-9993199)
 * Thank you. I must confess I have become lazy about checking WordPress function
   availability.
 * I will patch the development version today and post back.
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/propose-a-fix-for-bug/#post-9993227)
 * [https://github.com/loco/wp-loco/commit/ea0daaed32d6ca61d7543d36e6ac8763a1cfcfa3](https://github.com/loco/wp-loco/commit/ea0daaed32d6ca61d7543d36e6ac8763a1cfcfa3)
 * Many thanks.
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/propose-a-fix-for-bug/#post-9999274)
 * FYI this patch is now live in 2.1.2

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Propose a fix for bug’ is closed to new replies.

 * ![](https://ps.w.org/loco-translate/assets/icon-256x256.png?rev=1000676)
 * [Loco Translate](https://wordpress.org/plugins/loco-translate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loco-translate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loco-translate/)
 * [Active Topics](https://wordpress.org/support/plugin/loco-translate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loco-translate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loco-translate/reviews/)

## Tags

 * [get_locale](https://wordpress.org/support/topic-tag/get_locale/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/propose-a-fix-for-bug/#post-9999274)
 * Status: resolved