Plugin Directory

Changeset 2638411


Ignore:
Timestamp:
12/02/2021 08:05:05 AM (4 years ago)
Author:
horisawak
Message:

update to version 1.0.2

Location:
tdh-export/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tdh-export/trunk/js/tdh-script.js

    r2635317 r2638411  
    99                $(this).prop( "disabled", true );
    1010                // submitボタン文言変更
    11                 $(this).prop( "value", "処理中..." );
     11                $(this).prop( "value", "processing..." );
    1212                // スピナー表示
    1313                $("#id_spinner").addClass("selfmade-spinner-active");
  • tdh-export/trunk/languages/tdh-export-ja.po

    r2637377 r2638411  
    99"Report-Msgid-Bugs-To: \n"
    1010"POT-Creation-Date: 2021-11-27T02:19:35+00:00\n"
    11 "PO-Revision-Date: 2021-11-30 17:26+0900\n"
     11"PO-Revision-Date: 2021-12-01 10:35+0900\n"
    1212"Language-Team: \n"
    1313"MIME-Version: 1.0\n"
     
    127127
    128128#: tdh-export.php:analyze_tdh()
    129 msgid "The selected post type does not have a public page."
    130 msgstr "選択された投稿タイプにはページがありません。"
     129msgid "does not have a public page."
     130msgstr "には公開されているページがありません。"
    131131
    132132#: tdh-export.php:analyze_tdh()
  • tdh-export/trunk/readme.txt

    r2637384 r2638411  
    55Requires at least: 4.7
    66Tested up to: 5.8
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    4040== Changelog ==
    4141
     42= 1.0.2 =
     43* [ Bug fix ] Fix display when there is no public page.
     44* [ Bug fix ] Fix post type check disappearing.
     45
    4246= 1.0.1 =
    4347* Multilingual support. (English (US))
     
    4852== Upgrade Notice ==
    4953
     54= 1.0.2 =
     55* This version fixes minor bugs.
     56
    5057= 1.0.1 =
    5158* This version supports English (US).
  • tdh-export/trunk/tdh-export.php

    r2637377 r2638411  
    181181                                            $key = array_search( $additional_post_type->name, $sanitized_post_type_array );
    182182                                            // チェックが付いていたか判定
    183                                             if ( $key ) {
     183                                            if ( false !== $key ) {
    184184                                                echo 'checked'; // 履歴あり:チェックあり
    185185                                            } else {
     
    321321                        }
    322322
     323                        // horizontal rule
     324                        echo '<hr />';
     325
    323326                        // TDHを解析する
    324327                        $tdh_array = $this->analyze_tdh( $sanitized_post_type_array, $http_auth_array );
     
    465468
    466469                    // 取得結果を判定
    467                     if ( isset( $posts ) ) { // [OK] 投稿タイプ情報あり
     470                    if ( !empty( $posts ) ) { // [OK] 指定された投稿タイプに公開ページがある
    468471                        // 投稿ページ数だけループ
    469472                        foreach ( $posts as $post ) {
     
    569572
    570573                    } else { // [ERR] 指定された投稿タイプにおいて公開されているページがない
    571                         // 例外メッセージ表示
    572                         throw new Exception( __('The selected post type does not have a public page.', 'tdh-export') );
     574                        // エラーメッセージ表示
     575                        $error_string = $post_obj->label.' '.__('does not have a public page.', 'tdh-export');
     576                        echo '<div class="wrap"><div id="message" class="notice notice-warning inline"><p>' . esc_html__( $error_string ) . '</p></div></div>';
    573577                    } // end of if (投稿タイプ別のページ取得判定)
    574578
     
    602606            ?>
    603607            <div class="wrap">
    604                 <hr />
    605608                <table class="tdh-table" id="modal-content-v2"><tr></tr>
    606609                    <thead>
     
    648651
    649652        // 引数チェック
    650         if ( is_array( $tdh_array ) ) { // [OK] TDH配列が配列である
     653        if ( is_array( $tdh_array )
     654            && !empty( $tdh_array ) ) { // [OK] TDH配列に異常なし
    651655            // CSVファイル出力判定
    652656            switch ( $input_charset ) {
Note: See TracChangeset for help on using the changeset viewer.