���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC getPrevious() ) ){ $current = $next; } return $current; } /** * @return string */ public function getRealFile(){ if( $this->_file ){ return $this->_file; } return $this->getRootException()->getFile(); } /** * @return int */ public function getRealLine(){ if( $this->_line ){ return $this->_line; } return $this->getRootException()->getLine(); } /** * @return array */ public function getRealTrace(){ return $this->getRootException()->getTrace(); } /** * @param int $depth number of levels up from callee * @return Loco_error_Exception */ public function setCallee( $depth = 0, array $stack = null ){ if( is_null($stack) ) { $stack = debug_backtrace(0); } $callee = $stack[$depth]; $this->_file = $callee['file']; $this->_line = $callee['line']; // TODO could also log the stack trace from $depth upwards, but not required unless being logged or thrown return $this; } /** * Write this error to file regardless of log level * @return void */ public function log(){ $file = new Loco_fs_File( $this->getRealFile() ); $path = $file->getRelativePath( loco_plugin_root() ); $text = sprintf('[Loco.%s] "%s" in %s:%u', $this->getType(), $this->getMessage(), $path, $this->getRealLine() ); // separate error log for cli tests if( 'cli' === PHP_SAPI && defined('LOCO_TEST_DATA_ROOT') ){ error_log( '['.date('c').'] '.$text."\n", 3, 'debug.log' ); } // Else write to default PHP log, but note that WordPress may have set this to wp-content/debug.log. // If no `error_log` is set this will send message to the SAPI, so check your httpd/fast-cgi errors too. else { error_log( $text, 0 ); } } /** * Get view template for rendering error to HTML. * @return string path relative to root tpl directory */ public function getTemplate(){ return 'admin/errors/generic'; } /** * Get notice level short code as a string * @return string */ public function getType(){ return 'error'; } /** * Get verbosity level * @return int */ public function getLevel(){ return self::LEVEL_ERROR; } /** * Call wp cli logging function * @return void */ public function logCli(){ WP_CLI::error( $this->getMessage(), false ); } /** * Get localized notice level name * @return string */ public function getTitle(){ return __('Error','loco-translate'); } /** * @return array */ #[ReturnTypeWillChange] public function jsonSerialize(){ $a = [ 'code' => $this->getCode(), 'type' => $this->getType(), 'title' => $this->getTitle(), 'message' => $this->getMessage(), ]; /*if( loco_debugging() ){ $a['file'] = str_replace( ABSPATH, '', $this->getRealFile() ); $a['line'] = $this->getRealLine(); $a = self::recurseJsonSerialize($a,$this); }*/ return $a; } /** * @param string[] $a * @return array modified from $a * @codeCoverageIgnore */ private static function recurseJsonSerialize( array $a, Exception $child ){ $a['class'] = get_class($child); $a['trace'] = $child->getTraceAsString(); $parent = $child->getPrevious(); if( $parent instanceof Exception ){ $a['previous'] = self::recurseJsonSerialize([],$parent); } return $a; } /** * Push navigation links into error. Use for help pages etc.. * @param string $href * @param string $text * @return Loco_error_Exception */ public function addLink( $href, $text ){ $this->links[] = sprintf('%s', esc_url($href), esc_html($text) ); return $this; } /** * @return array */ public function getLinks(){ return $this->links; } /** * Convert generic exception to one of ours * @param Exception $e original error * @return Loco_error_Exception */ public static function convert( Exception $e ){ if( $e instanceof Loco_error_Exception ){ return $e; } return new Loco_error_Exception( $e->getMessage(), $e->getCode(), $e ); } /** * Test if this error should be automatically logged * @return bool */ public function loggable(){ if( $this->_log ){ // Log messages of minimum priority and up, depending on debug mode // note that non-debug level is in line with error_reporting set by WordPress (notices ignored) $priority = loco_debugging() ? Loco_error_Exception::LEVEL_DEBUG : Loco_error_Exception::LEVEL_WARNING; return $this->getLevel() <= $priority; } return false; } /** * Suppress logging for this error. e.g if you want to warn in UI but don't want to pollute log files. * @return self */ public function noLog(){ $this->_log = false; return $this; } /** * Check if passed exception is effectively the same as this one * @return bool */ public function isIdentical( Exception $other ){ return $this->getCode() === $other->getCode() && $this->getMessage() === $other->getMessage() && $this->getType() === ( $other instanceof Loco_error_Exception ? $other->getType() : 0 ); } }