#40114 closed defect (bug) (invalid)
load_plugin_textdomain() no back compatibility
| Reported by: | Tkama | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | I18N | Version: | 4.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
load_plugin_textdomain() uses get_user_locale() function if is_admin()===true, but get_user_locale() introduced in WP 4.7. And what with back compatibility?..
So, if user have Wordpress less then 4.7 and any plugin has function load_plugin_textdomain() in admin area - user get PHP fatal error - use undefined function...
Is it ok?
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I have a plugin using
load_plugin_textdomain(), and tested it on 4.2 version of WordPress, and the function didn't threw any errors. Theget_user_locale()is used in a filter, so my bet is it's safe to use there...