' .
__('Your site is currently linked to Wordfence Central under a different site URL.', 'wordfence')
. ' '
. __('This may cause duplicated scan issues if both sites are currently active and reporting and is generally caused by duplicating the database from one site to another (e.g., from a production site to staging). We recommend disconnecting this site only, which will leave the matching site still connected.', 'wordfence')
. '
'
. __('If this is a single site with multiple domains or subdomains, you can dismiss this message.', 'wordfence')
. '
'
. '' .
__('Disconnect This Site', 'wordfence')
. ' '
. '' .
__('Disconnect All', 'wordfence')
. ' '
. '' .
__('Dismiss', 'wordfence')
. ' '
. ' (' . esc_html__('opens in new tab', 'wordfence') . ')
';
}
/**
* Returns the audit log URL for this site in Wordfence Central.
*
* The return value may be:
* - null if there is no `audit-log-url` key present in the stored Central data
* - a string if there is a `audit-log-url` value
*
* @return string|null
*/
public static function getCentralAuditLogUrl() {
$siteData = json_decode(wfConfig::get('wordfenceCentralSiteData', '[]'), true);
return (is_array($siteData) && array_key_exists('audit-log-url', $siteData)) ? (string) $siteData['audit-log-url'] : null;
}
}