run();
}
add_action( 'plugins_loaded', 'aipatch_init' );
/**
* Admin notice: PHP version too low.
*/
function aipatch_php_notice() {
printf(
'
',
esc_html(
sprintf(
/* translators: 1: Required PHP version, 2: Current PHP version. */
__( 'Aipatch Security Scanner requires PHP %1$s or higher. You are running PHP %2$s.', 'aipatch-security-scanner' ),
AIPATCH_MIN_PHP,
PHP_VERSION
)
)
);
}
/**
* Admin notice: WordPress version too low.
*/
function aipatch_wp_notice() {
global $wp_version;
printf(
'',
esc_html(
sprintf(
/* translators: 1: Required WP version, 2: Current WP version. */
__( 'Aipatch Security Scanner requires WordPress %1$s or higher. You are running %2$s.', 'aipatch-security-scanner' ),
AIPATCH_MIN_WP,
$wp_version
)
)
);
}