Current Path : /storage/v11800/romasitenew/public_html/wp-content/plugins/all-in-one-seo-pack/app/init/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/romasitenew/public_html/wp-content/plugins/all-in-one-seo-pack/app/init/init.php |
<?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! function_exists( 'aioseoMaybePluginIsDisabled' ) ) {
/**
* Disable the AIOSEO if triggered externally.
*
* @since 4.1.5
* @version 4.5.0 Added the $file parameter and Lite check.
*
* @param string $file The plugin file.
* @return bool True if the plugin should be disabled.
*/
function aioseoMaybePluginIsDisabled( $file ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
if (
'all-in-one-seo-pack/all_in_one_seo_pack.php' === plugin_basename( $file ) &&
is_plugin_active( 'all-in-one-seo-pack-pro/all_in_one_seo_pack.php' )
) {
return true;
}
if ( ! defined( 'AIOSEO_DEV_VERSION' ) && ! isset( $_REQUEST['aioseo-dev'] ) ) { // phpcs:ignore HM.Security.NonceVerification.Recommended
return false;
}
if ( ! isset( $_REQUEST['aioseo-disable-plugin'] ) ) { // phpcs:ignore HM.Security.NonceVerification.Recommended
return false;
}
return true;
}
}