[wp-trac] [WordPress Trac] #40114: load_plugin_textdomain() no back compatibility
WordPress Trac
noreply at wordpress.org
Sun Mar 12 07:58:21 UTC 2017
#40114: load_plugin_textdomain() no back compatibility
----------------------------+-----------------------------
Reporter: Tkama | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.7
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
`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?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40114>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list