Plugin Directory

Changeset 3304717


Ignore:
Timestamp:
06/02/2025 08:22:40 AM (10 months ago)
Author:
sergiotrinity
Message:

v5.20.1

Location:
trinity-audio/trunk
Files:
4 edited

Legend:

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

    r3283963 r3304717  
    153153
    154154== Changelog ==
     155
     156= 5.20.1 =
     157 *Release Date - May 30, 2025*
     158 * Added nonce-based CSRF protection for the audio registration process
     159
    155160= 5.20.0 =
    156161 *Release Date - Apr 29, 2025*
  • trinity-audio/trunk/admin/index.php

    r3283963 r3304717  
    6262        'TRINITY_AUDIO_SEND_METRIC'          => TRINITY_AUDIO_SEND_METRIC,
    6363        'TRINITY_AUDIO_REMOVE_POST_BANNER'   => TRINITY_AUDIO_REMOVE_POST_BANNER,
    64         'TRINITY_AUDIO_PACKAGE_INFO'         => TRINITY_AUDIO_PACKAGE_INFO
     64        'TRINITY_AUDIO_PACKAGE_INFO'         => TRINITY_AUDIO_PACKAGE_INFO,
     65        'TRINITY_AUDIO_REGISTER_NONCE'       => wp_create_nonce('trinity_audio_register_nonce')
    6566      ]
    6667    );
     
    266267
    267268  function trinity_audio_ajax_register() {
     269    if (!isset($_POST['_wpnonce']) || !check_ajax_referer('trinity_audio_register_nonce', '_wpnonce')) {
     270        wp_send_json_error(array('message' => 'Nonce verification failed.'));
     271        wp_die();
     272    }
    268273    trinity_register();
    269274    wp_die();
  • trinity-audio/trunk/js/admin.js

    r3283963 r3304717  
    337337      recover_installkey: jQuery('#' + window.TRINITY_WP_ADMIN.TRINITY_AUDIO_RECOVER_INSTALLKEY).val(),
    338338      publisher_token: jQuery('#' + window.TRINITY_WP_ADMIN.TRINITY_AUDIO_PUBLISHER_TOKEN).val(),
    339       email_subscription: Number(jQuery('#' + window.TRINITY_WP_ADMIN.TRINITY_AUDIO_EMAIL_SUBSCRIPTION)[0].checked)
     339      email_subscription: Number(jQuery('#' + window.TRINITY_WP_ADMIN.TRINITY_AUDIO_EMAIL_SUBSCRIPTION)[0].checked),
     340      _wpnonce: window.TRINITY_WP_ADMIN.TRINITY_AUDIO_REGISTER_NONCE
    340341    },
    341342    success: function (response) {
  • trinity-audio/trunk/trinity.php

    r3283963 r3304717  
    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.20.0
     11   * Version:           5.20.1
    1212   * Author:            Trinity Audio
    1313   * Author URI:        https://trinityaudio.ai/
Note: See TracChangeset for help on using the changeset viewer.