| Server IP : 91.134.83.25 / Your IP : 216.73.216.137 Web Server : Apache System : Linux plesk.serveurapc.fr 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64 User : marrasse ( 10057) PHP Version : 8.2.32 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/as-cp.fr/wpascp/wp-content/plugins/loco-translate/src/compat/ |
Upload File : |
<?php
/**
* Class containing reasons for total incompatibility with current WordPress environment.
* It won't be loaded unless total failure occurs
*
* @codeCoverageIgnore
*/
abstract class Loco_compat_Failure {
/**
* "admin_notices" callback, renders failure notice if plugin failed to start up admin hooks.
* If this is hooked and not unhooked then auto-hooks using annotations have failed.
*/
public static function print_hook_failure(){
$texts = [ 'Loco Translate failed to start up' ];
/*/ Hooks currently not using annotations (would be if we enabled @priority tag)
if( ini_get('opcache.enable') && ( ! ini_get('opcache.save_comments') || ! ini_get('opcache.load_comments') ) ){
$texts[] = 'Try configuring opcache to preserve comments';
}*/
echo '<div class="notice error"><p><strong>Error:</strong> '.implode('. ',$texts).'</p></div>';
}
}