Changeset 3791772
- Timestamp:
- 11/09/2026 03:16:05 AM (less than one hour ago)
- Location:
- natural-text-to-speech/trunk
- Files:
-
- 26 added
- 21 deleted
- 7 edited
-
components/analytics/analytics.php (modified) (1 diff)
-
components/analytics/helper.php (modified) (1 diff)
-
components/config.php (modified) (2 diffs)
-
components/tools/class-natuteto-analytics.php (modified) (1 diff)
-
constants.php (modified) (1 diff)
-
natural-text-to-speech.php (modified) (2 diffs)
-
public/js/ntts-admin-v3.5.2-main.js (deleted)
-
public/js/ntts-admin-v3.5.2-vendor.js (deleted)
-
public/js/ntts-admin-v3.5.3-main.js (added)
-
public/js/ntts-admin-v3.5.3-vendor.js (added)
-
public/js/ntts-block-editor-v3.5.2.js (deleted)
-
public/js/ntts-block-editor-v3.5.3.js (added)
-
public/js/ntts-public-v3.5.2-main.js (deleted)
-
public/js/ntts-public-v3.5.2-vendor.js (deleted)
-
public/js/ntts-public-v3.5.3-main.js (added)
-
public/js/ntts-public-v3.5.3-vendor.js (added)
-
public/js/ntts-shortcode-editor-v3.5.2.js (deleted)
-
public/js/ntts-shortcode-editor-v3.5.3.js (added)
-
public/js/nttsa-14f1d706.js (deleted)
-
public/js/nttsa-18c83ba5.js (added)
-
public/js/nttsa-1c0f111c.js (added)
-
public/js/nttsa-22cc584b.js (added)
-
public/js/nttsa-2a379eeb.js (added)
-
public/js/nttsa-3bcf266c.js (deleted)
-
public/js/nttsa-64528969.js (deleted)
-
public/js/nttsa-6764d7bf.js (added)
-
public/js/nttsa-6a1980b5.js (added)
-
public/js/nttsa-81a27d73.js (deleted)
-
public/js/nttsa-8366e146.js (added)
-
public/js/nttsa-86d0de46.js (deleted)
-
public/js/nttsa-870cb8ab.js (deleted)
-
public/js/nttsa-8d7bfd43.js (added)
-
public/js/nttsa-932f6a86.js (added)
-
public/js/nttsa-9c4a93e1.js (deleted)
-
public/js/nttsa-aab09862.js (added)
-
public/js/nttsa-aec45a21.js (added)
-
public/js/nttsa-bc9c367d.js (added)
-
public/js/nttsa-c29a3efa.js (added)
-
public/js/nttsa-c76942a7.js (deleted)
-
public/js/nttsa-cc577d98.js (deleted)
-
public/js/nttsa-dd7118ce.js (deleted)
-
public/js/nttsa-dde326c0.js (added)
-
public/js/nttsa-de4e685f.js (added)
-
public/js/nttsa-e4bb7702.js (added)
-
public/js/nttsa-e969a388.js (deleted)
-
public/js/nttsa-eccb6c21.js (added)
-
public/js/nttsa-edc4b3ed.js (deleted)
-
public/js/nttsa-fc67f87b.js (deleted)
-
public/js/nttsa-fda5a427.js (added)
-
public/js/nttsp-7f7d90ae.js (deleted)
-
public/js/nttsp-bc6d60ee.js (added)
-
public/js/nttsp-c9dc3696.js (deleted)
-
public/js/nttsp-cb182a16.js (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
natural-text-to-speech/trunk/components/analytics/analytics.php
r3481657 r3791772 70 70 null !== $post_id ? (int) $post_id : null 71 71 ); 72 73 return new WP_REST_Response( 74 array( 75 'status' => true, 76 'data' => $data, 77 'meta' => array( 78 'type' => $type, 79 'key' => $key, 80 ), 81 ), 82 200 83 ); 84 } 85 86 // One page view's time on page from the player's beacon: seconds (capped at 30 minutes) and whether the visitor 87 // pressed Listen. Stored as daily totals only: seconds and views, for listeners and for the others. 88 if ( 'insight' === $type && 'time_on_page' === $key ) { 89 $seconds = min( 1800, max( 0, (int) $request->get_param( 'seconds' ) ) ); 90 $listened = in_array( (string) $request->get_param( 'listened' ), array( '1', 'true' ), true ); 91 92 if ( $seconds < 1 ) { 93 return new WP_REST_Response( 94 array( 95 'status' => false, 96 'message' => 'seconds must be at least 1.', 97 ), 98 400 99 ); 100 } 101 102 $group = $listened ? 'listened' : 'other'; 103 Natuteto_Analytics::set( 'insight', 'page_seconds_' . $group, $seconds ); 104 $data = Natuteto_Analytics::set( 'insight', 'page_views_' . $group ); 72 105 73 106 return new WP_REST_Response( -
natural-text-to-speech/trunk/components/analytics/helper.php
r3481657 r3791772 46 46 'completion_count', 47 47 'completion_session', 48 'time_on_page', 49 // Stored by time_on_page; listed so Advanced → Analytics can reset them. 50 'page_seconds_listened', 51 'page_views_listened', 52 'page_seconds_other', 53 'page_views_other', 48 54 ); 49 55 -
natural-text-to-speech/trunk/components/config.php
r3762669 r3791772 746 746 'analytics_completions', 747 747 'analytics_completion_rate', 748 'analytics_time_on_page', 748 749 'analytics_api', 749 750 ); … … 757 758 'analytics_completions', 758 759 'analytics_completion_rate', 760 'analytics_time_on_page', 759 761 'analytics_api', 760 762 ); -
natural-text-to-speech/trunk/components/tools/class-natuteto-analytics.php
r3481657 r3791772 38 38 39 39 $key_map = array( 40 'player_initialized' => 'analytics_player_visibility', 41 'play_time' => 'analytics_total_listening_time', 42 'completion_count' => 'analytics_completions', 43 'completion_session' => 'analytics_completion_rate', 40 'player_initialized' => 'analytics_player_visibility', 41 'play_time' => 'analytics_total_listening_time', 42 'completion_count' => 'analytics_completions', 43 'completion_session' => 'analytics_completion_rate', 44 // Time on page, stored as two counters per group: visitors who pressed Listen and the others. 45 'page_seconds_listened' => 'analytics_time_on_page', 46 'page_views_listened' => 'analytics_time_on_page', 47 'page_seconds_other' => 'analytics_time_on_page', 48 'page_views_other' => 'analytics_time_on_page', 44 49 ); 45 50 -
natural-text-to-speech/trunk/constants.php
r3644183 r3791772 147 147 '720' => 40000, 148 148 ), 149 'analytics_data_retention' => 90,149 'analytics_data_retention' => 365, 150 150 'analytics_button' => true, 151 151 'analytics_insight' => true, -
natural-text-to-speech/trunk/natural-text-to-speech.php
r3790489 r3791772 4 4 * Plugin URI: https://wordpress.org/plugins/natural-text-to-speech 5 5 * Description: Read aloud your posts using natural, human-like voices and highlights sentences and words as they are spoken. Available in Free and Pro versions! Start now with 20,000 free characters / month. 6 * Version: 3.5. 26 * Version: 3.5.3 7 7 * Requires at least: 5.9 8 8 * Author: Reinvent WP … … 21 21 * serious issues with the options, so no if ( ! defined() ).}} 22 22 */ 23 define( 'NATUTETO_VERSION', '3.5. 2' );23 define( 'NATUTETO_VERSION', '3.5.3' ); 24 24 25 25 if ( ! defined( 'NATUTETO_PLUGIN_DIR' ) ) { -
natural-text-to-speech/trunk/readme.txt
r3790489 r3791772 4 4 Requires at least: 5.9 5 5 Tested up to: 7.1 6 Stable tag: 3.5. 27 Version: 3.5. 26 Stable tag: 3.5.3 7 Version: 3.5.3 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 231 231 == Changelog == 232 232 233 = 3.5.3 = 234 * New Analytics tab in Simple mode: listens, time listened, listen rate and how much of each article is heard, compared with the period before. 235 * See how long readers who listen stay on the page compared with those who don't. 236 * Download your analytics as a PDF report. 237 * Home shows rotating highlights of your listening activity and the most common playback problems. 238 * Analytics are now kept for one year by default. 239 * Pronunciation correction is hidden from visitors until you turn it on in Runtime. 240 * Smaller fixes to the player settings menu and the admin layout. 241 233 242 = 3.5.2 = 234 243 * Visitors can pick their own voice in the player's settings.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)