Plugin Directory

Changeset 3246858


Ignore:
Timestamp:
02/26/2025 06:56:41 AM (11 months ago)
Author:
poporon
Message:

2.5.6.3

  • [Fixed] 設定画面でタブの移動などが出来なくなる不具合を修正しました。(Thanks HidetatsuTsuji @hakitukai on x.com)
  • [Fixed] 設定画面で処理中にエラーが発生したまま固まる不具合を修正しました。(Thanks ゴルフや投資の配信 @piyofumin4 on x.com)
  • [Fixed] 投稿編集画面にて挿入ボタンが起因したエラーが表示されていたのを修正しました。(Thanks マーージ@ブログ中毒 @maagemagemaaage on x.com)
  • [Fixed] 管理者権限の無いログインユーザーがサイトを見た際、PHPのWarningが発声してしまう不具合を修正しました。(Thanks @kikorin55 on wordpress.org)
  • [Fixed] 軽微なバグを修正しました。
  • [Modified] 設定画面の「上級者向け」タブの「調査モード」をログファイルを出力する機能のみにしました。
  • [Modified] 設定画面の「上級者向け」タブに「デバッグモード」を追加しました。調査モードの一部の機能(非表示項目の表示)を移しました。
  • [Modified] 内部処理を一部見直しました。
  • [Pending] 投稿編集画面にて挿入ボタンが動作しない件について調査中です。(Thanks yukkun20 #comment-12876 on popozure.info)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pz-linkcard/trunk/pz-linkcard.php

    r3246852 r3246858  
    25882588    }
    25892589
     2590    // デバグ用の文字列表示
     2591    private function    pz_OutputLOG($function, $user_message = null, $separate = false ) {
     2592        if  (is_dir(DIR_DEBUG ) ) {
     2593            $filename       =   DIR_DEBUG.$this->slug.'_'.date('Ymd', current_time('timestamp', false ) ).'.log';
     2594            if  (function_exists('microtime' ) && function_exists('wp_date') ) {
     2595                $timestamp  =   microtime(true );
     2596                $dt         =   intval($timestamp );
     2597                $ms         =   substr(intval($timestamp * 1000 ), -3, 3 );
     2598                $timestamp  =   wp_date('Y-m-d H:i:s', $dt ).'.'.$ms;
     2599            } else {
     2600                $timestamp  =   date('Y-m-d H:i:s', current_time('timestamp', false ) );
     2601            }
     2602            $count          =   sprintf('%03d', $this->test_count++ );
     2603            $message        =   ($separate ? PHP_EOL : null ).$timestamp.' '.$count.' ['.$function.'] '.$user_message.(mb_substr($user_message, -1, 1) == PHP_EOL ? null : PHP_EOL );
     2604            $result         =   file_put_contents($filename, $message, FILE_APPEND );
     2605            return          $result;
     2606        }
     2607    }
     2608
    25902609    // 日付・時刻の書式変換
    25912610    private function    pz_Date($format, $value ) {
     
    27052724    // 管理画面時の設定(スクリプトの追加)
    27062725    public  function    action_admin_print_scripts() {
    2707         if  ($this->options['survey-mode'] ) { $this->pz_OutputLOG(__FUNCTION__ ); }
     2726        // if   ($this->options['survey-mode'] ) { $this->pz_OutputLOG(__FUNCTION__ ); }
    27082727
    27092728    }
     
    28202839        return  $log;
    28212840    }
    2822 
    2823     // デバグ用の文字列表示
    2824     private function    pz_OutputLOG($function, $user_message = null, $separate = false ) {
    2825         if  (is_dir(DIR_DEBUG ) ) {
    2826             $filename       =   DIR_DEBUG.$this->slug.'_'.date('Ymd', current_time('timestamp', false ) ).'.log';
    2827 //          if  (function_exists('microtime' ) ) {
    2828 //              $timestamp  =   microtime(true );
    2829 //              $timestamp  =   wp_date('Y-m-d H:i:s', $timestamp ).'.'.substr(intval($timestamp * 1000 ), -3, 3 );
    2830 //          } else {
    2831                 $timestamp  =   date('Y-m-d H:i:s', current_time('timestamp', false ) );
    2832 //          }
    2833             $count          =   sprintf('%03d', $this->test_count++ );
    2834             $message        =   ($separate ? PHP_EOL : null ).$timestamp.' '.$count.' ['.$function.'] '.$user_message.(mb_substr($user_message, -1, 1) == PHP_EOL ? null : PHP_EOL );
    2835             $result         =   file_put_contents($filename, $message, FILE_APPEND );
    2836             return          $result;
    2837         }
    2838     }
    28392841}
    28402842$class_pz_linkcard  =   new class_pz_linkcard;
Note: See TracChangeset for help on using the changeset viewer.