[wp-trac] [WordPress Trac] #62154: Latest beta Warnings Function load_plugin_textdomain was called incorrectly.
WordPress Trac
noreply at wordpress.org
Thu Oct 3 21:22:20 UTC 2024
#62154: Latest beta Warnings Function load_plugin_textdomain was called
incorrectly.
--------------------------+------------------------
Reporter: neo2k23 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: I18N | Version: trunk
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
--------------------------+------------------------
Comment (by swissspidy):
Again, the warning can still happen even if you remove the function call,
because some of your code triggers the automatic translation loading too
early.
I recommend waiting for Beta 2 & watching out for the dev-note post for
updates. Then you can leave a comment on the post or the original ticket
if sonething is still not quite right.
And yes, most probably you can remove that function call. Only if you load
translations from a custom location, i.e. if your plugin is not hosted on
WordPress.org, you might still need it. I recommend trying it yourself and
reading https://make.wordpress.org/core/2016/07/06/i18n-improvements-
in-4-6/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62154#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list