28 lines
759 B
PHP
28 lines
759 B
PHP
<?php
|
|
// Exit if accessed directly.
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
if ( ! function_exists( 'aioseo_blc_is_plugin_disabled' ) ) {
|
|
/**
|
|
* Disable the plugin if triggered externally.
|
|
*
|
|
* @since 1.0.0
|
|
*
|
|
* @return bool True if the plugin should be disabled.
|
|
*/
|
|
function aioseo_blc_is_plugin_disabled() {
|
|
// phpcs:ignore HM.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Recommended
|
|
if ( ! defined( 'AIOSEO_DEV_VERSION' ) && ! isset( $_REQUEST['aioseo-dev'] ) ) {
|
|
return false;
|
|
}
|
|
|
|
// phpcs:ignore HM.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Recommended
|
|
if ( ! isset( $_REQUEST['aioseo-disable-broken-link-checker'] ) ) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
} |