Plugin Directory

Changeset 3172851


Ignore:
Timestamp:
10/21/2024 11:10:57 AM (18 months ago)
Author:
sergiotrinity
Message:

v5.10

Location:
trinity-audio/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trinity-audio/trunk/README.txt

    r3149790 r3172851  
    153153
    154154== Changelog ==
     155= 5.10 =
     156 *Release Date - Oct 21, 2024*
     157 * Avoid render plugin on preview posts list
     158
    155159= 5.9 =
    156160 *Release Date - May 27, 2024*
  • trinity-audio/trunk/trinity.php

    r3093666 r3172851  
    99   * Plugin URI:        https://wordpress.org/plugins/trinity-audio/
    1010   * 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.9
     11   * Version:           5.10
    1212   * Author:            Trinity Audio
    1313   * Author URI:        https://trinityaudio.ai/
     
    4242    $in_the_loop = in_the_loop() ?: !!trinity_get_check_for_loop();
    4343
     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
    4448    $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');");
    4752
    4853      if (strpos($content, TRINITY_AUDIO_STARTUP) !== false) {
Note: See TracChangeset for help on using the changeset viewer.