private function json_encode($data) { $json = json_encode($data); if (false !== $json) { return $json; } require_once $GLOBALS['ithemes_sync_path'] . '/class-ithemes-sync-json.php'; return Ithemes_Sync_JSON::encode($data); }
private function json_encode($data) { $json = json_encode($data); if (false !== $json) { return $json; } require_once dirname(__FILE__) . '/class-ithemes-sync-json.php'; return Ithemes_Sync_JSON::encode($data); }