Plugin Directory

Changeset 2721688


Ignore:
Timestamp:
05/11/2022 05:36:16 AM (4 years ago)
Author:
ResponsiveVoice
Message:

Fix API Key include logic; updated 'Tested up to' for upcoming Wordpress 6.0

Location:
responsivevoice-text-to-speech/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • responsivevoice-text-to-speech/trunk/includes/responsivevoice-includes.php

    r2595481 r2721688  
    33function RV_load_scripts()
    44{
    5     $options = get_option('RV_settings');
     5    $options = get_option('RV_settings', '');
     6    $apiKey  = !empty($options) && array_key_exists('RV_text_api_key', $options) ? $options['RV_text_api_key'] : '';
     7
    68    $appendScriptTag = [
    79        'source=wp-plugin'
    810    ];
    911
    10     if($options['RV_text_api_key']){
    11         $appendScriptTag[] = "key={$options['RV_text_api_key']}";
     12    if(!empty($apiKey)){
     13        $appendScriptTag[] = "key=$apiKey";
    1214    }
    1315
  • responsivevoice-text-to-speech/trunk/includes/responsivevoice-options.php

    r2403917 r2721688  
    4242function RV_text_api_key_render()
    4343{
    44     $options = get_option('RV_settings');
    45     echo '<input class="form-control" type="text" name="RV_settings[RV_text_api_key]" value="' . $options['RV_text_api_key'] . '">';
     44    $options = get_option('RV_settings', '');
     45    $apiKey  = !empty($options) && array_key_exists('RV_text_api_key', $options) ? $options['RV_text_api_key'] : '';
     46    echo '<input class="form-control" type="text" name="RV_settings[RV_text_api_key]" value="' . $apiKey . '">';
    4647}
    4748
  • responsivevoice-text-to-speech/trunk/readme.txt

    r2595481 r2721688  
    55Tags: audio, google translate, Google Voice, speech, text to audio, text to speech, text-to-speech, text2speech, speech synthesis api, webspeech api, voice, espeak, javascript, Speak, speech, spoken, text, text-to-speech, talk, listen, accessibility, a11y, webreader, ivona, tts, arabic, mp3, ogg, buddypress, button, chinese, english, french, german, google, welcome, greetings, hebrew, html, html5, iPad, iphone, italian, jquery, link, links, menus, mobile, multilingual, page, pages, plugin, plugins, portuguese, Post, posts, readability, Russian, seo, shortcode, sidebar, sound, spanish, gspeech, stats, tablet, tts, widget, wordpress, button, blind, visual impairment, elderly, ADA, BS 8878:2010, WCAG 2.0, Web Content Accessibility Guidelines 2.0
    66Requires at least: 3.6
    7 Tested up to: 5.8
    8 Stable tag: 1.7.3
     7Tested up to: 6.0
     8Stable tag: 1.7.4
    99License: GPLv2
    1010
     
    8080
    8181== Changelog ==
     82
     83= Version 1.7.4 =
     84* Fix API Key include logic when the plugin is first installed
     85* Update "Tested up to" for upcoming Wordpress 6.0 release
    8286
    8387= Version 1.7.3 =
     
    296300== Upgrade Notice ==
    297301
    298 = 1.7.3 =
     302= 1.7.4 =
    299303* Upgrade the plugin for the latest improvements.
  • responsivevoice-text-to-speech/trunk/responsivevoice-text-to-speech.php

    r2595481 r2721688  
    44Plugin URI: responsivevoice.com/wordpress-text-to-speech-plugin/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=wprvttsplugin
    55Description: An easy to use plugin to integrate ResponsiveVoice Text to Speech into your WP blog.
    6 Version: 1.7.3
     6Version: 1.7.4
    77Author: ResponsiveVoice
    88Author URI: http://responsivevoice.com
Note: See TracChangeset for help on using the changeset viewer.