This commit is contained in:
Javier Casares 2026-08-07 10:44:58 +00:00
commit 7dfff83511

View file

@ -5,7 +5,7 @@
* Description: Receive information about possible vulnerabilities in your WordPress from WordPress Vulnerability Database API.
* Requires at least: 5.6
* Requires PHP: 7.0
* Version: 5.1.1
* Version: 5.1.2
* Author: ROBOTSTXT
* Author URI: https://www.robotstxt.es/
* License: GPL-3.0-or-later
@ -16,7 +16,7 @@
*
* @package WPVulnerability
*
* @version 5.1.1
* @version 5.1.2
*/
defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
@ -24,7 +24,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
/**
* Set some constants that I can change in future versions.
*/
define( 'WPVULNERABILITY_PLUGIN_VERSION', '5.1.1' );
define( 'WPVULNERABILITY_PLUGIN_VERSION', '5.1.2' );
define( 'WPVULNERABILITY_API_HOST', 'https://www.wpvulnerability.net/' );
/**
@ -137,3 +137,19 @@ if (
*/
require_once WPVULNERABILITY_PLUGIN_PATH . '/wpvulnerability-schedule.php';
require_once WPVULNERABILITY_PLUGIN_PATH . '/wpvulnerability-api.php';
/**
* Load plugin translations on init.
*
* Explicitly loading the textdomain on init prevents the
* "_load_textdomain_just_in_time() was called incorrectly" notice
* on WordPress 6.7+.
*
* @since 5.1.2
*
* @return void
*/
function wpvulnerability_load_textdomain() {
load_plugin_textdomain( 'wpvulnerability', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
add_action( 'init', 'wpvulnerability_load_textdomain' );