javiercasares / wpvulnerability

Plugin WPVulnerability for WordPress. https://wordpress.org/plugins/wpvulnerability/
27 stars 5 forks source link

Function load_plugin_textdomain was called incorrectly. WP6.7 #128

Open ipajen opened 4 days ago

ipajen commented 4 days ago

Bug Report

Description

Function load_plugin_textdomain was called incorrectly on 6.7 beta1

Environment

Function load_plugin_textdomain was called incorrectly. Attempted to load translations for the wpvulnerability domain too early. Translations should be loaded after the after_setup_theme action has fired, to ensure that the current user is already set up. (This message was added in version 6.7.0.) `

load_plugin_textdomain()wp-includes/l10n.php:1003wpvulnerability_plugin_init()wp-content/plugins/wpvulnerability/wpvulnerability.php:51do_action('plugins_loaded')wp-includes/plugin.php:517 --

`

javiercasares commented 4 days ago

NOTES: https://developer.wordpress.org/reference/functions/load_plugin_textdomain/

javiercasares commented 3 days ago

I've been testing it, and there is no problem loading the plugin files. If all plugins are deactivated except WPVulnerability, it works fine.

If I start it with some other plugins, then, I get some errors, but after looking it, it's not WPVulnerability related.

javiercasares commented 3 days ago
Notice: Function load_plugin_textdomain was called incorrectly. Attempted to load translations for the wpvulnerability domain too early. Translations should be loaded after the after_setup_theme action has fired, to ensure that the current user is already set up. Please see [Debugging in WordPress](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/) for more information. (This message was added in version 6.7.0.) in /home/***/wp-includes/functions.php on line 609
javiercasares commented 3 days ago

so, we need to load the translations on: after_setup_them