Changeset 3172851
- Timestamp:
- 10/21/2024 11:10:57 AM (18 months ago)
- Location:
- trinity-audio/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (1 diff)
-
trinity.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trinity-audio/trunk/README.txt
r3149790 r3172851 153 153 154 154 == Changelog == 155 = 5.10 = 156 *Release Date - Oct 21, 2024* 157 * Avoid render plugin on preview posts list 158 155 159 = 5.9 = 156 160 *Release Date - May 27, 2024* -
trinity-audio/trunk/trinity.php
r3093666 r3172851 9 9 * Plugin URI: https://wordpress.org/plugins/trinity-audio/ 10 10 * Description: This plugin generates an audio version of the post, for absolutely FREE. You can choose the language and the gender of the voice reading your content. You also have the option to add Trinity Audio's player on select posts or have it audiofy all of your content. In both cases, it only takes a few simple clicks to get it done. The plugin is built through collaboration with the Amazon Polly team. 11 * Version: 5. 911 * Version: 5.10 12 12 * Author: Trinity Audio 13 13 * Author URI: https://trinityaudio.ai/ … … 42 42 $in_the_loop = in_the_loop() ?: !!trinity_get_check_for_loop(); 43 43 44 $main_post_id = get_queried_object_id(); 45 $renders_post_id = get_the_ID(); 46 $is_renders_main_post_id = $main_post_id === $renders_post_id; 47 44 48 $is_main_query = is_main_query(); 45 if (!($is_single && $in_the_loop && $is_main_query)) { 46 wp_add_inline_script("the_content-hook-script", "console.debug('TRINITY_WP', 'Skip player from rendering', 'is single: $is_single, is main loop: $in_the_loop, is main query: $is_main_query', 'TS: $date');"); 49 50 if (!($is_single && $in_the_loop && $is_main_query && $is_renders_main_post_id)) { 51 wp_add_inline_script("the_content-hook-script", "console.debug('TRINITY_WP', 'Skip player from rendering', 'is single: $is_single, is main loop: $in_the_loop, is main query: $is_main_query, is renders main post id: $is_renders_main_post_id. Main post ID: $main_post_id, renders post id: $renders_post_id', 'TS: $date');"); 47 52 48 53 if (strpos($content, TRINITY_AUDIO_STARTUP) !== false) {
Note: See TracChangeset
for help on using the changeset viewer.