Sindbad~EG File Manager
<?php
namespace WebpConverter\Error\Detector;
use WebpConverter\Error\Notice\UnsupportedPlaygroundServerNotice;
/**
* Checks for configuration errors about unsupported servers.
*/
class UnsupportedServerDetector implements DetectorInterface {
/**
* {@inheritdoc}
*/
public function get_error() {
if ( strpos( $_SERVER['SERVER_NAME'] ?? '', 'playground.wordpress.net' ) !== false ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput
return new UnsupportedPlaygroundServerNotice();
}
return null;
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists