Closed cornelRaiu closed 4 years ago
I tried to move this PR against develop
but it seems there is another commit done on master
that would need to be merged into develop
so I moved it back against master
. Let me know if I should close this PR and submit one against develop
. Thank you for this nice template!
According to the WP documentation here:
https://developer.wordpress.org/reference/functions/load_plugin_textdomain/
since WP 4.6
load_plugin_textdomain
now tries to load the .mo file from the languages directory first. It also applies theplugin_locale
filter so the code doing that in the plugin template is redundant.If you think it is necessary I can make this method check for the current WP version and load the localization the old way if version is lower than 4.6.
Let me know.