#40114 closed defect (bug) (invalid)
load_plugin_textdomain() no back compatibility
Reported by: | Tkama | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7 |
Component: | I18N | Keywords: | |
Focuses: | Cc: |
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.
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...