[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:29:28 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 room34):
I poked around a bit further and determined that the call that is
generating the notice is at line 151 in `wp-admin/includes/plugin.php` in
the `_get_plugin_data_markup_translate()` function.
The above private function is called by the public function
`get_plugin_data()` which I do use in my plugins, fairly early. I see that
function has a parameter to bypass translation, so that seems to be my
fix. Sharing here in case any other plugin developers are experiencing the
same!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62154#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list