| @@ -496,11 +496,9 @@ | ||
| 496 | 496 | ]; |
| 497 | 497 | |
| 498 | 498 | $url = add_query_arg($data, 'https://wpmanageninja.com/'); |
| 499 | 499 | |
| 500 | - wp_remote_post($url, [ | |
| 501 | - 'sslverify' => false | |
| 502 | - ]); | |
| 500 | + wp_remote_post($url); | |
| 503 | 501 | } |
| 504 | 502 | |
| 505 | 503 | /** |
| 506 | 504 | * installFluentCRM method will install Fluent CRM plugin |
| @@ -723,9 +721,9 @@ | ||
| 723 | 721 | } |
| 724 | 722 | |
| 725 | 723 | $drivers = apply_filters('fluent_support/storage_drivers_info', [ |
| 726 | 724 | 'local' => [ |
| 727 | - 'title' => 'Default WordPress Storage', | |
| 725 | + 'title' => __('Default WordPress Storage', 'fluent-support'), | |
| 728 | 726 | 'is_disabled' => false, |
| 729 | 727 | 'is_configured' => true, |
| 730 | 728 | 'icon' => FLUENT_SUPPORT_PLUGIN_URL . 'assets/images/icons/folder.svg', |
| 731 | 729 | 'description' => __('Upload and store the files to your WordPress File System Storage.', 'fluent-support') |
| @@ -735,8 +733,9 @@ | ||
| 735 | 733 | 'title' => 'Dropbox', |
| 736 | 734 | 'has_config' => true, |
| 737 | 735 | 'is_configured' => $dropBoxConfigured, |
| 738 | 736 | 'require_pro' => !defined('FLUENTSUPPORTPRO'), |
| 737 | + 'upgrade_url' => Helper::getUpgradeUrl('feature_lock_dropbox'), | |
| 739 | 738 | 'icon' => FLUENT_SUPPORT_PLUGIN_URL . 'assets/images/icons/dbox.svg', |
| 740 | 739 | 'description' => __('Upload and store the files to your Dropbox Storage.', 'fluent-support') |
| 741 | 740 | ], |
| 742 | 741 | 'google_drive' => [ |
| @@ -744,9 +743,9 @@ | ||
| 744 | 743 | 'title' => 'Google Drive', |
| 745 | 744 | 'has_config' => true, |
| 746 | 745 | 'is_configured' => $googleDriveConfigured, |
| 747 | 746 | 'require_pro' => !defined('FLUENTSUPPORTPRO'), |
| 748 | - 'upgrade_url' => 'https://fluentsupport.com/pricing', | |
| 747 | + 'upgrade_url' => Helper::getUpgradeUrl('feature_lock_google_drive'), | |
| 749 | 748 | 'description' => __('Upload and store the files to your Google Drive Storage.', 'fluent-support'), |
| 750 | 749 | 'icon' => FLUENT_SUPPORT_PLUGIN_URL . 'assets/images/icons/drive.svg', |
| 751 | 750 | ], |
| 752 | 751 | 'cloudflare_r2' => [ |
| @@ -754,9 +753,9 @@ | ||
| 754 | 753 | 'title' => 'Cloudflare R2', |
| 755 | 754 | 'has_config' => true, |
| 756 | 755 | 'is_configured' => $cloudflareR2Configured, |
| 757 | 756 | 'require_pro' => !defined('FLUENTSUPPORTPRO'), |
| 758 | - 'upgrade_url' => 'https://fluentsupport.com/pricing', | |
| 757 | + 'upgrade_url' => Helper::getUpgradeUrl('feature_lock_cloudflare_r2'), | |
| 759 | 758 | 'description' => __('Upload and store the files to Cloudflare R2 Storage with zero egress fees.', 'fluent-support'), |
| 760 | 759 | 'icon' => FLUENT_SUPPORT_PLUGIN_URL . 'assets/images/icons/cloudflare-r2.svg', |
| 761 | 760 | ], |
| 762 | 761 | 'amazon_s3' => [ |
| @@ -764,9 +763,9 @@ | ||
| 764 | 763 | 'title' => 'Amazon S3', |
| 765 | 764 | 'has_config' => true, |
| 766 | 765 | 'is_configured' => $amazonS3Configured, |
| 767 | 766 | 'require_pro' => !defined('FLUENTSUPPORTPRO'), |
| 768 | - 'upgrade_url' => 'https://fluentsupport.com/pricing', | |
| 767 | + 'upgrade_url' => Helper::getUpgradeUrl('feature_lock_amazon_s3'), | |
| 769 | 768 | 'description' => __('Upload and store the files to Amazon S3 cloud storage.', 'fluent-support'), |
| 770 | 769 | 'icon' => FLUENT_SUPPORT_PLUGIN_URL . 'assets/images/icons/amazon-s3.svg', |
| 771 | 770 | ] |
| 772 | 771 | ]); |
| @@ -782,9 +781,9 @@ | ||
| 782 | 781 | $driver = $request->getSafe('driver', 'sanitize_text_field'); |
| 783 | 782 | Helper::updateOption('file_upload_driver', $driver); |
| 784 | 783 | |
| 785 | 784 | return [ |
| 786 | - 'message' => 'Upload driver has been updated successfully', | |
| 785 | + 'message' => __('Upload driver updated.', 'fluent-support'), | |
| 787 | 786 | 'driver' => $driver |
| 788 | 787 | ]; |
| 789 | 788 | } |
| 790 | 789 | |
| @@ -835,9 +834,9 @@ | ||
| 835 | 834 | return $mapping; |
| 836 | 835 | }, $settings['productMappings']); |
| 837 | 836 | } |
| 838 | 837 | |
| 839 | - $productItems = Product::all()->map(function ($product) { | |
| 838 | + $productItems = Product::orderedByTitle()->get()->map(function ($product) { | |
| 840 | 839 | return [ |
| 841 | 840 | 'id' => $product->id, |
| 842 | 841 | 'title' => $product->title |
| 843 | 842 | ]; |
| @@ -935,9 +934,9 @@ | ||
| 935 | 934 | $responseData['hasApiKey'] = $apiKey !== ''; |
| 936 | 935 | |
| 937 | 936 | return [ |
| 938 | 937 | 'success' => true, |
| 939 | - 'message' => 'Settings saved successfully', | |
| 938 | + 'message' => __('Settings saved.', 'fluent-support'), | |
| 940 | 939 | 'data' => $responseData |
| 941 | 940 | ]; |
| 942 | 941 | } |
| 943 | 942 | |