Changeset 2888231
- Timestamp:
- 03/28/2023 09:43:16 AM (3 years ago)
- Location:
- ryen-wp/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
public/class-ryen-public.php (modified) (3 diffs)
-
ryen.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ryen-wp/trunk/README.txt
r2884966 r2888231 6 6 License: GPL 2.0 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.txt 8 Stable Tag: 3.1. 68 Stable Tag: 3.1.7 9 9 10 10 == Description == … … 25 25 26 26 == Changelog == 27 = 3.1.7 = 28 * Fix forwarded user prefilled variables 29 27 30 = 3.1.6 = 28 31 * Fix default apiHost typo -
ryen-wp/trunk/public/class-ryen-public.php
r2884966 r2888231 11 11 if(typeof window.ryenWpUser === "undefined"){ 12 12 window.ryenWpUser = { 13 wp_id:"' .13 "WP ID":"' . 14 14 $wp_user->ID . 15 15 '", 16 wp_username:"' .16 "WP Username":"' . 17 17 $wp_user->user_login . 18 18 '", 19 wp_email:"' .19 "WP Email":"' . 20 20 $wp_user->user_email . 21 21 '", 22 wp_first_name:"' .22 "WP First name":"' . 23 23 $wp_user->user_firstname . 24 24 '", 25 wp_last_name:"' .25 "WP Last name":"' . 26 26 $wp_user->user_lastname . 27 27 '", … … 66 66 })) { 67 67 ' . get_option('init_snippet') . ' 68 Ryen.setPrefilledVariables({ ryenWpUser });68 Ryen.setPrefilledVariables({ ...ryenWpUser }); 69 69 70 70 }'; … … 102 102 $bot_initializer = '<script type="module"> 103 103 import Ryen from "' . $lib_url . '" 104 Ryen.initStandard({ apiHost: "' . $api_host . '", id: "' . $id . '", ryen: "' . $ryen . '", prefilledVariables: { ryenWpUser } });</script>';104 Ryen.initStandard({ apiHost: "' . $api_host . '", id: "' . $id . '", ryen: "' . $ryen . '", prefilledVariables: { ...ryenWpUser } });</script>'; 105 105 106 106 return '<ryen-standard id="' . $id . '" style="width: ' . $width . '; height: ' . $height . ';"></ryen-standard>' . $bot_initializer; -
ryen-wp/trunk/ryen.php
r2884966 r2888231 4 4 * Plugin Name: Ryen WP 5 5 * Description: Convert more with conversational forms 6 * Version: 3.1. 66 * Version: 3.1.7 7 7 * Author: Ryen 8 8 * Author URI: http://ryen.org/ … … 17 17 } 18 18 19 define('RYEN_VERSION', '3.1. 6');19 define('RYEN_VERSION', '3.1.7'); 20 20 21 21 function activate_ryen()
Note: See TracChangeset
for help on using the changeset viewer.