Changeset 3481638
- Timestamp:
- 03/13/2026 03:49:23 AM (3 weeks ago)
- Location:
- ondoku
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.28 (copied) (copied from ondoku/trunk)
-
tags/1.0.28/classes/hooks.php (modified) (2 diffs)
-
tags/1.0.28/ondokusan.php (modified) (2 diffs)
-
tags/1.0.28/readme.txt (modified) (1 diff)
-
trunk/classes/hooks.php (modified) (2 diffs)
-
trunk/ondokusan.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ondoku/tags/1.0.28/classes/hooks.php
r3452493 r3481638 66 66 */ 67 67 public function handle_status_transition( $new_status, $old_status, $post ) { 68 // 非公開の投稿タイプ(ACFフィールドグループ等)はスキップ 69 $post_type_obj = get_post_type_object( $post->post_type ); 70 if ( ! $post_type_obj || ! $post_type_obj->public ) { 71 $this->write_log( sprintf( 72 '非公開投稿タイプのためスキップ: post_id=%d, post_type=%s', 73 $post->ID, 74 $post->post_type 75 ) ); 76 return; 77 } 78 68 79 // future -> publish の遷移(予約投稿の公開)を検出 69 80 if ( $new_status === 'publish' && $old_status === 'future' ) { … … 85 96 public function read_ondoku( $post_id, $from_transition = false ) { 86 97 98 // オートセーブ時はスキップ 99 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { 100 return; 101 } 102 87 103 $post = get_post( $post_id ); 104 105 // 投稿が取得できない場合はスキップ 106 if ( ! $post ) { 107 return; 108 } 109 110 // 非公開の投稿タイプ(ACFフィールドグループ等)はスキップ 111 $post_type_obj = get_post_type_object( $post->post_type ); 112 if ( ! $post_type_obj || ! $post_type_obj->public ) { 113 $this->write_log( sprintf( 114 '非公開投稿タイプのためスキップ: post_id=%d, post_type=%s', 115 $post_id, 116 $post->post_type 117 ) ); 118 return; 119 } 88 120 89 121 // 自動保存と非公開では音読データを作らない -
ondoku/tags/1.0.28/ondokusan.php
r3453470 r3481638 4 4 Description: Text to Speech (TTS) plugin. Automatically convert posts to MP3 audio. 音読さん - ブログ読み上げ・音声化プラグイン。 5 5 Author: Ondoku 6 Version: 1.0.2 76 Version: 1.0.28 7 7 Text Domain: ondoku3 8 8 Domain Path: /languages/ … … 13 13 14 14 define( 'ONDOKUSAN', __FILE__ ); 15 define( 'ONDOKUSAN_VERSION', '1.0.2 7' );15 define( 'ONDOKUSAN_VERSION', '1.0.28' ); 16 16 define( 'ONDOKUSAN_DIR', untrailingslashit( dirname( __FILE__) ) ); 17 17 define( 'ONDOKUSAN_URL', untrailingslashit( plugins_url( '', __FILE__ ) ) ); -
ondoku/tags/1.0.28/readme.txt
r3453470 r3481638 5 5 Requires at least: 5.1 6 6 Requires PHP: 8.0 7 Stable tag: 1.0.2 77 Stable tag: 1.0.28 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
ondoku/trunk/classes/hooks.php
r3452493 r3481638 66 66 */ 67 67 public function handle_status_transition( $new_status, $old_status, $post ) { 68 // 非公開の投稿タイプ(ACFフィールドグループ等)はスキップ 69 $post_type_obj = get_post_type_object( $post->post_type ); 70 if ( ! $post_type_obj || ! $post_type_obj->public ) { 71 $this->write_log( sprintf( 72 '非公開投稿タイプのためスキップ: post_id=%d, post_type=%s', 73 $post->ID, 74 $post->post_type 75 ) ); 76 return; 77 } 78 68 79 // future -> publish の遷移(予約投稿の公開)を検出 69 80 if ( $new_status === 'publish' && $old_status === 'future' ) { … … 85 96 public function read_ondoku( $post_id, $from_transition = false ) { 86 97 98 // オートセーブ時はスキップ 99 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { 100 return; 101 } 102 87 103 $post = get_post( $post_id ); 104 105 // 投稿が取得できない場合はスキップ 106 if ( ! $post ) { 107 return; 108 } 109 110 // 非公開の投稿タイプ(ACFフィールドグループ等)はスキップ 111 $post_type_obj = get_post_type_object( $post->post_type ); 112 if ( ! $post_type_obj || ! $post_type_obj->public ) { 113 $this->write_log( sprintf( 114 '非公開投稿タイプのためスキップ: post_id=%d, post_type=%s', 115 $post_id, 116 $post->post_type 117 ) ); 118 return; 119 } 88 120 89 121 // 自動保存と非公開では音読データを作らない -
ondoku/trunk/ondokusan.php
r3453470 r3481638 4 4 Description: Text to Speech (TTS) plugin. Automatically convert posts to MP3 audio. 音読さん - ブログ読み上げ・音声化プラグイン。 5 5 Author: Ondoku 6 Version: 1.0.2 76 Version: 1.0.28 7 7 Text Domain: ondoku3 8 8 Domain Path: /languages/ … … 13 13 14 14 define( 'ONDOKUSAN', __FILE__ ); 15 define( 'ONDOKUSAN_VERSION', '1.0.2 7' );15 define( 'ONDOKUSAN_VERSION', '1.0.28' ); 16 16 define( 'ONDOKUSAN_DIR', untrailingslashit( dirname( __FILE__) ) ); 17 17 define( 'ONDOKUSAN_URL', untrailingslashit( plugins_url( '', __FILE__ ) ) ); -
ondoku/trunk/readme.txt
r3453470 r3481638 5 5 Requires at least: 5.1 6 6 Requires PHP: 8.0 7 Stable tag: 1.0.2 77 Stable tag: 1.0.28 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.