Changeset 3304717
- Timestamp:
- 06/02/2025 08:22:40 AM (10 months ago)
- Location:
- trinity-audio/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (1 diff)
-
admin/index.php (modified) (2 diffs)
-
js/admin.js (modified) (1 diff)
-
trinity.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trinity-audio/trunk/README.txt
r3283963 r3304717 153 153 154 154 == Changelog == 155 156 = 5.20.1 = 157 *Release Date - May 30, 2025* 158 * Added nonce-based CSRF protection for the audio registration process 159 155 160 = 5.20.0 = 156 161 *Release Date - Apr 29, 2025* -
trinity-audio/trunk/admin/index.php
r3283963 r3304717 62 62 'TRINITY_AUDIO_SEND_METRIC' => TRINITY_AUDIO_SEND_METRIC, 63 63 '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') 65 66 ] 66 67 ); … … 266 267 267 268 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 } 268 273 trinity_register(); 269 274 wp_die(); -
trinity-audio/trunk/js/admin.js
r3283963 r3304717 337 337 recover_installkey: jQuery('#' + window.TRINITY_WP_ADMIN.TRINITY_AUDIO_RECOVER_INSTALLKEY).val(), 338 338 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 340 341 }, 341 342 success: function (response) { -
trinity-audio/trunk/trinity.php
r3283963 r3304717 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.20. 011 * Version: 5.20.1 12 12 * Author: Trinity Audio 13 13 * Author URI: https://trinityaudio.ai/
Note: See TracChangeset
for help on using the changeset viewer.