wc-donation / wc-donation-platform

Donation Platform for WooCommerce unleashes the power of WooCommerce for your online fundraising, crowdfunding & crowdsponsoring
https://www.wc-donation.com/
GNU General Public License v2.0
41 stars 11 forks source link

Remove load_plugin_textdomain() call #77

Closed todeveni closed 1 week ago

todeveni commented 1 week ago

Reminder: if your plugin or theme is hosted on WordPress.org and is still using load_*_textdomain(), you can remove this call. Since WordPress 4.6, plugins and themes no longer need load_plugin_textdomain() or load_theme_textdomain().

https://make.wordpress.org/core/2024/10/21/i18n-improvements-6-7/

Not sure though why this deprecation notice is being triggered on wc-donation-platform, since translations are loaded correctly in init action AFAICT.

I'm getting this when testing WordPress 6.7 in staging:

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wc-donation-platform domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later.

jonas-hoebenreich commented 1 week ago

Thank you