v5.1.6
This commit is contained in:
parent
7dfff83511
commit
e6cba7ef6a
1 changed files with 2559 additions and 1286 deletions
|
|
@ -3,9 +3,9 @@
|
|||
* Plugin Name: WPVulnerability
|
||||
* Plugin URI: https://www.wpvulnerability.com/plugin/
|
||||
* Description: Receive information about possible vulnerabilities in your WordPress from WordPress Vulnerability Database API.
|
||||
* Requires at least: 5.6
|
||||
* Requires at least: 4.7
|
||||
* Requires PHP: 7.0
|
||||
* Version: 5.1.2
|
||||
* Version: 5.1.6
|
||||
* Author: ROBOTSTXT
|
||||
* Author URI: https://www.robotstxt.es/
|
||||
* License: GPL-3.0-or-later
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @package WPVulnerability
|
||||
*
|
||||
* @version 5.1.2
|
||||
* @version 5.1.6
|
||||
*/
|
||||
|
||||
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.2' );
|
||||
define( 'WPVULNERABILITY_PLUGIN_VERSION', '5.1.6' );
|
||||
define( 'WPVULNERABILITY_API_HOST', 'https://www.wpvulnerability.net/' );
|
||||
|
||||
/**
|
||||
|
|
@ -35,6 +35,14 @@ define( 'WPVULNERABILITY_PLUGIN_FILE', __FILE__ );
|
|||
define( 'WPVULNERABILITY_PLUGIN_BASE', plugin_basename( __FILE__ ) );
|
||||
define( 'WPVULNERABILITY_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
|
||||
|
||||
/*
|
||||
* WordPress core function polyfills (wp_date, wp_timezone, wp_doing_cron, ...).
|
||||
* Loaded first so every module can call the core functions unconditionally.
|
||||
*
|
||||
* @since 5.1.3
|
||||
*/
|
||||
require_once WPVULNERABILITY_PLUGIN_PATH . '/wpvulnerability-compat.php';
|
||||
|
||||
// Handle front-end email opt-out requests early.
|
||||
if ( isset( $_GET['wpvulnerability_disable_email'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
||||
// Load pluggable functions so wp_verify_nonce() is available.
|
||||
|
|
@ -126,7 +134,8 @@ if (
|
|||
require_once WPVULNERABILITY_PLUGIN_PATH . '/wpvulnerability-run.php';
|
||||
register_activation_hook( WPVULNERABILITY_PLUGIN_FILE, 'wpvulnerability_activation' );
|
||||
register_deactivation_hook( WPVULNERABILITY_PLUGIN_FILE, 'wpvulnerability_deactivation' );
|
||||
register_uninstall_hook( WPVULNERABILITY_PLUGIN_FILE, 'wpvulnerability_uninstall' );
|
||||
// Uninstall is handled by uninstall.php (it supersedes register_uninstall_hook
|
||||
// and enforces the delete_on_uninstall opt-in); see docs/known-issues.md KI-3.
|
||||
add_action( 'init', 'wpvulnerability_plugin_init' );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue