Plugin Directory

Changeset 3791772


Ignore:
Timestamp:
11/09/2026 03:16:05 AM (less than one hour ago)
Author:
reinventwp
Message:

Deploying version 3.5.3 - fix ui ux admin simple mode

Location:
natural-text-to-speech/trunk
Files:
26 added
21 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • natural-text-to-speech/trunk/components/analytics/analytics.php

    r3481657 r3791772  
    7070                        null !== $post_id ? (int) $post_id : null
    7171                );
     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 );
    72105
    73106                return new WP_REST_Response(
  • natural-text-to-speech/trunk/components/analytics/helper.php

    r3481657 r3791772  
    4646                        'completion_count',
    4747                        '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',
    4854                );
    4955
  • natural-text-to-speech/trunk/components/config.php

    r3762669 r3791772  
    746746                'analytics_completions',
    747747                'analytics_completion_rate',
     748                'analytics_time_on_page',
    748749                'analytics_api',
    749750        );
    … …  
    757758                'analytics_completions',
    758759                'analytics_completion_rate',
     760                'analytics_time_on_page',
    759761                'analytics_api',
    760762        );
  • natural-text-to-speech/trunk/components/tools/class-natuteto-analytics.php

    r3481657 r3791772  
    3838
    3939                $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',
    4449                );
    4550
  • natural-text-to-speech/trunk/constants.php

    r3644183 r3791772  
    147147                '720' => 40000,
    148148        ),
    149         'analytics_data_retention'                       => 90,
     149        'analytics_data_retention'                       => 365,
    150150        'analytics_button'                               => true,
    151151        'analytics_insight'                              => true,
  • natural-text-to-speech/trunk/natural-text-to-speech.php

    r3790489 r3791772  
    44 * Plugin URI:  https://wordpress.org/plugins/natural-text-to-speech
    55 * 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.2
     6 * Version:     3.5.3
    77 * Requires at least: 5.9
    88 * Author:      Reinvent WP
    … …  
    2121 * serious issues with the options, so no if ( ! defined() ).}}
    2222 */
    23 define( 'NATUTETO_VERSION', '3.5.2' );
     23define( 'NATUTETO_VERSION', '3.5.3' );
    2424
    2525if ( ! defined( 'NATUTETO_PLUGIN_DIR' ) ) {
  • natural-text-to-speech/trunk/readme.txt

    r3790489 r3791772  
    44Requires at least: 5.9
    55Tested up to: 7.1
    6 Stable tag: 3.5.2
    7 Version: 3.5.2
     6Stable tag: 3.5.3
     7Version: 3.5.3
    88Requires PHP: 7.4
    99License: GPLv2 or later
    … …  
    231231== Changelog ==
    232232
     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
    233242= 3.5.2 =
    234243* Visitors can pick their own voice in the player's settings.
Note: See TracChangeset for help on using the changeset viewer.