Changeset 3128435
- Timestamp:
- 07/31/2024 02:37:20 AM (18 months ago)
- Location:
- ryviu/tags/3.1.25
- Files:
-
- 3 edited
-
includes/main-class.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
ryviu.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ryviu/tags/3.1.25/includes/main-class.php
r3112810 r3128435 9 9 public static function check_connect_ryviu($check = false) { 10 10 $mes = 'Connection failed, please contact Ryviu support for help.'; 11 $mes_eor = 'Success'; 11 12 delete_option( 'ryviu_client_settings' ); 12 13 $settings = get_option( 'ryviu_client_settings' ); … … 15 16 try{ 16 17 $settings_info = wp_remote_get( $url, ['timeout' => 3] ); 18 $mes_eor = $settings_info; 17 19 if ( is_wp_error( $settings_info ) ) { 18 20 $settings = ''; 21 $mes = 'Request failed: ' . $settings_info->get_error_message(); 19 22 } else { 20 if(isset($settings_info['body'])){ 23 $response_code = wp_remote_retrieve_response_code($settings_info); 24 25 if ($response_code == 502) { 26 $mes = 'Bad Gateway: The server received an invalid response. Please try again later or contact Ryviu support.'; 27 } else if (isset($settings_info['body'])) { 21 28 $settings_body = json_decode($settings_info['body']); 22 29 if($settings_body->status != 'error'){ … … 30 37 ]); 31 38 } 32 33 39 } 34 } 40 }else{ 41 $mes = 'Your store has not been linked to Ryviu, or the connected WordPress address is incorrect. Please login to your Ryviu account and check the settings page.'; 42 } 35 43 } 36 44 } 37 $mes = 'Your store has not been linked to Ryviu, or the connected WordPress address is incorrect. Please login your Ryviu account and check in the settings page.';38 45 }catch(Exception $e){ 39 //handle exception 46 $mes_eor = $e->getMessage(); 47 $mes = 'An error occurred: ' . $mes_eor; 40 48 } 41 49 } … … 43 51 wp_send_json([ 44 52 'status' => 'error', 53 'mes_eor' => $mes_eor, 45 54 'mes' => $mes 46 55 ]); -
ryviu/tags/3.1.25/readme.txt
r3112810 r3128435 4 4 Tags: reviews, dropshiping, woocommerce reviews, fake reviews, manage reviews 5 5 Requires at least: 4.0 6 Tested up to: 6. 56 Tested up to: 6.6 7 7 WC requires at least: 3.0 8 WC tested up to: 8.99 Stable tag: 5.*8 WC tested up to: 9.1 9 Stable tag: 3.1.25 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
ryviu/tags/3.1.25/ryviu.php
r3112810 r3128435 18 18 * Version: 3.1.25 19 19 * Requires at least: 4.0 20 * Tested up to: 6. 520 * Tested up to: 6.6 21 21 * WC requires at least: 3.0 22 * WC tested up to: 8.922 * WC tested up to: 9.1 23 23 * Author: Ryviu 24 24 * Author URI: https://www.ryviu.com
Note: See TracChangeset
for help on using the changeset viewer.