Changeset 2638411
- Timestamp:
- 12/02/2021 08:05:05 AM (4 years ago)
- Location:
- tdh-export/trunk
- Files:
-
- 5 edited
-
js/tdh-script.js (modified) (1 diff)
-
languages/tdh-export-ja.mo (modified) (previous)
-
languages/tdh-export-ja.po (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
tdh-export.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tdh-export/trunk/js/tdh-script.js
r2635317 r2638411 9 9 $(this).prop( "disabled", true ); 10 10 // submitボタン文言変更 11 $(this).prop( "value", " 処理中..." );11 $(this).prop( "value", "processing..." ); 12 12 // スピナー表示 13 13 $("#id_spinner").addClass("selfmade-spinner-active"); -
tdh-export/trunk/languages/tdh-export-ja.po
r2637377 r2638411 9 9 "Report-Msgid-Bugs-To: \n" 10 10 "POT-Creation-Date: 2021-11-27T02:19:35+00:00\n" 11 "PO-Revision-Date: 2021-1 1-30 17:26+0900\n"11 "PO-Revision-Date: 2021-12-01 10:35+0900\n" 12 12 "Language-Team: \n" 13 13 "MIME-Version: 1.0\n" … … 127 127 128 128 #: tdh-export.php:analyze_tdh() 129 msgid " The selected post typedoes not have a public page."130 msgstr " 選択された投稿タイプにはページがありません。"129 msgid "does not have a public page." 130 msgstr "には公開されているページがありません。" 131 131 132 132 #: tdh-export.php:analyze_tdh() -
tdh-export/trunk/readme.txt
r2637384 r2638411 5 5 Requires at least: 4.7 6 6 Tested up to: 5.8 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 40 40 == Changelog == 41 41 42 = 1.0.2 = 43 * [ Bug fix ] Fix display when there is no public page. 44 * [ Bug fix ] Fix post type check disappearing. 45 42 46 = 1.0.1 = 43 47 * Multilingual support. (English (US)) … … 48 52 == Upgrade Notice == 49 53 54 = 1.0.2 = 55 * This version fixes minor bugs. 56 50 57 = 1.0.1 = 51 58 * This version supports English (US). -
tdh-export/trunk/tdh-export.php
r2637377 r2638411 181 181 $key = array_search( $additional_post_type->name, $sanitized_post_type_array ); 182 182 // チェックが付いていたか判定 183 if ( $key ) {183 if ( false !== $key ) { 184 184 echo 'checked'; // 履歴あり:チェックあり 185 185 } else { … … 321 321 } 322 322 323 // horizontal rule 324 echo '<hr />'; 325 323 326 // TDHを解析する 324 327 $tdh_array = $this->analyze_tdh( $sanitized_post_type_array, $http_auth_array ); … … 465 468 466 469 // 取得結果を判定 467 if ( isset( $posts ) ) { // [OK] 投稿タイプ情報あり470 if ( !empty( $posts ) ) { // [OK] 指定された投稿タイプに公開ページがある 468 471 // 投稿ページ数だけループ 469 472 foreach ( $posts as $post ) { … … 569 572 570 573 } 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>'; 573 577 } // end of if (投稿タイプ別のページ取得判定) 574 578 … … 602 606 ?> 603 607 <div class="wrap"> 604 <hr />605 608 <table class="tdh-table" id="modal-content-v2"><tr></tr> 606 609 <thead> … … 648 651 649 652 // 引数チェック 650 if ( is_array( $tdh_array ) ) { // [OK] TDH配列が配列である 653 if ( is_array( $tdh_array ) 654 && !empty( $tdh_array ) ) { // [OK] TDH配列に異常なし 651 655 // CSVファイル出力判定 652 656 switch ( $input_charset ) {
Note: See TracChangeset
for help on using the changeset viewer.