Exemplo n.º 1
0
 private function canCatchTheError($triggerFilePath = '')
 {
     if (function_exists("is_admin") && is_admin()) {
         if (!class_exists("\\Strata\\Router\\Router")) {
             return false;
         }
         if (!Router::isAjax()) {
             return false;
         }
     }
     if (strstr($triggerFilePath, Strata::getPluginsPath()) || strstr($triggerFilePath, Strata::getWordpressPath())) {
         return false;
     }
     if (!function_exists('get_template_directory')) {
         return false;
     }
     return true;
 }