Skip to content

Commit 1abe19c

Browse files
authored
Merge pull request #91 from Bit-Apps-Pro/rishad-dev-tmp
version updated to 2.5.0
2 parents 2804bc9 + d0a8ed0 commit 1abe19c

File tree

7 files changed

+99
-601
lines changed

7 files changed

+99
-601
lines changed

bitwpfi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: Bit Integrations
55
* Plugin URI: https://bitapps.pro/bit-integrations
66
* Description: Bit Integrations is a platform that integrates with over 260+ different platforms to help with various tasks on your WordPress site, like WooCommerce, Form builder, Page builder, LMS, Sales funnels, Bookings, CRM, Webhooks, Email marketing, Social media and Spreadsheets, etc
7-
* Version: 2.4.10
7+
* Version: 2.5.0
88
* Author: Automation & Integration Plugin - Bit Apps
99
* Author URI: https://bitapps.pro
1010
* Text Domain: bit-integrations
@@ -24,7 +24,7 @@
2424
$btcbi_db_version = '1.1';
2525

2626
// Define most essential constants.
27-
define('BTCBI_VERSION', '2.4.10');
27+
define('BTCBI_VERSION', '2.5.0');
2828
define('BTCBI_PLUGIN_MAIN_FILE', __FILE__);
2929

3030
require_once plugin_dir_path(__FILE__) . 'includes/loader.php';

frontend-dev/src/components/Triggers/TriggerHelpers/TriggerStateHelper.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -889,11 +889,10 @@ export const SliceWpStateIH = (tmpConf, flowData) => {
889889
}
890890

891891
export const SureCartStateIH = (tmpConf, flowData) => {
892-
const val = Number(flowData.formID)
893-
if (val === 1 || val === 2 || val === 3) {
894-
tmpConf.selectedProduct = flowData.selectedProduct
895-
tmpConf.allProduct = flowData.allProduct
896-
}
892+
893+
tmpConf.selectedProduct = flowData.selectedProduct
894+
tmpConf.allProduct = flowData.allProduct
895+
897896
return tmpConf
898897
}
899898

frontend-dev/src/pages/ChangelogToggle.jsx

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function ChangelogToggle() {
1818

1919
// const source = !btcbi.isPro ? 'bit-integrations' : 'bit-integrations-pro'
2020
// const dealURL = `https://bitapps.pro/new-year-deal/#bit-integrations-pricing`
21-
const releaseDate = '25th February 2025'
21+
const releaseDate = '5th March 2025'
2222

2323
// Changelog items format [{ 'label': '', 'desc': '', 'isPro': true }]
2424
const changeLog = [
@@ -39,31 +39,42 @@ export default function ChangelogToggle() {
3939
headClass: 'new-trigger',
4040
itemClass: 'integration-list',
4141
items: [
42-
{ label: 'Amelia Booking', desc: '', isPro: true },
43-
{ label: 'bbPress', desc: '', isPro: true },
44-
{ label: 'FluentSMTP', desc: '', isPro: true },
45-
{ label: 'GravityKit', desc: '', isPro: true },
46-
{ label: 'Newsletter', desc: '', isPro: true },
47-
{ label: 'Wishlist Member', desc: '', isPro: true }
42+
{ label: 'Advanced Custom Fields (ACF)', desc: '', isPro: true },
43+
{ label: 'LearnPress LMS', desc: '', isPro: true },
44+
{ label: 'PeepSo', desc: '', isPro: true },
45+
{ label: 'Presto Player', desc: '', isPro: true },
46+
{ label: 'Simply Schedule Appointments', desc: '', isPro: true },
47+
{ label: 'SureMail WordPress SMTP', desc: '', isPro: true }
4848
]
4949
},
5050
{
5151
label: __('New Features', 'bit-integrations'),
5252
headClass: 'new-feature',
5353
itemClass: 'feature-list',
54-
items: [
55-
{
56-
label: 'Klaviyo',
57-
desc: 'Update Profile feature added for enhanced audience segmentation and personalization.',
58-
isPro: true
59-
}
60-
]
54+
items: []
6155
},
6256
{
6357
label: __('New Improvements', 'bit-integrations'),
6458
headClass: 'new-improvement',
6559
itemClass: 'feature-list',
6660
items: []
61+
},
62+
{
63+
label: __('Bug Fixes', 'bit-integrations'),
64+
headClass: 'fixes',
65+
itemClass: 'fixes-list',
66+
items: [
67+
{
68+
label: 'SureCart',
69+
desc: 'Resolved an issue where editing dependencies caused unexpected errors.',
70+
isPro: true
71+
},
72+
{
73+
label: 'SureCart',
74+
desc: 'Fixed a bug where multiple executions occurred unexpectedly.',
75+
isPro: true
76+
}
77+
]
6778
}
6879
]
6980

frontend-dev/src/resource/sass/app.scss

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5642,42 +5642,43 @@ _:-ms-fullscreen,
56425642
line-height: 1.3;
56435643
}
56445644

5645+
.new-integration,
5646+
.new-note,
5647+
.new-trigger,
5648+
.new-improvement,
5649+
.new-feature,
5650+
.fixes {
5651+
padding: 2px 13px;
5652+
}
5653+
56455654
.new-integration {
5646-
background-color: #8c46e9a3;
5647-
color: rgb(255, 255, 255);
5648-
padding: 4px 8px;
5655+
background-color: #c3e2f2;
56495656
text-align: center;
56505657
border-radius: 5px;
56515658
}
56525659

56535660
.new-note {
56545661
background-color: #406af9f7;
56555662
color: rgb(255, 255, 255);
5656-
padding: 4px 8px;
56575663
text-align: center;
56585664
border-radius: 5px;
56595665
}
56605666

56615667
.new-trigger {
5662-
background-color: #af388ccf;
5663-
color: rgb(255, 255, 255);
5664-
padding: 4px 8px;
5668+
background-color: #f6cbff;
56655669
text-align: center;
56665670
border-radius: 5px;
56675671
}
56685672

56695673
.new-improvement {
5670-
background-color: #0d00ffa3;
5671-
color: rgb(255, 255, 255);
5672-
padding: 4px 8px;
5674+
background-color: #00ffbf;
56735675
text-align: center;
56745676
border-radius: 5px;
56755677
}
56765678

56775679
.new-feature {
5678-
background-color: #1ab981a3;
5680+
background-color: #6518b6;
56795681
color: white;
5680-
padding: 4px 8px;
56815682
text-align: center;
56825683
border-radius: 5px;
56835684
}
@@ -5686,14 +5687,12 @@ _:-ms-fullscreen,
56865687
margin: 0px 0px 25px 0px;
56875688

56885689
& > ul {
5689-
list-style-type: decimal;
5690+
list-style-type: disc;
56905691
}
56915692
}
56925693

56935694
.fixes {
5694-
background-color: rgb(0 173 255 / 66%);
5695-
color: white;
5696-
padding: 4px 8px;
5695+
background-color: #ffd000;
56975696
text-align: center;
56985697
border-radius: 5px;
56995698
}
@@ -5710,7 +5709,7 @@ _:-ms-fullscreen,
57105709
margin: 0px 0px 25px 0px;
57115710

57125711
& > ul {
5713-
list-style-type: decimal;
5712+
list-style-type: circle;
57145713
}
57155714
}
57165715

includes/Actions/ActionController.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace BitCode\FI\Actions;
44

5-
use FilesystemIterator;
65
use WP_Error;
76
use WP_REST_Request;
7+
use FilesystemIterator;
88

99
final class ActionController
1010
{
@@ -37,16 +37,23 @@ final class ActionController
3737
public function handleRedirect(WP_REST_Request $request)
3838
{
3939
$state = $request->get_param('state');
40-
$parsed_url = wp_parse_url(get_site_url());
41-
$site_url = $parsed_url['scheme'] . '://' . $parsed_url['host'];
42-
$site_url .= empty($parsed_url['port']) ? null : ':' . $parsed_url['port'];
43-
if (strpos($state, $site_url) === false) {
40+
41+
if (static::getHostWithPort($state) !== static::getHostWithPort(get_site_url())) {
4442
return new WP_Error('404');
4543
}
44+
4645
$params = $request->get_params();
4746
unset($params['rest_route'], $params['state']);
47+
4848
if (wp_redirect($state . '&' . http_build_query($params), 302)) {
4949
exit;
5050
}
5151
}
52+
53+
public static function getHostWithPort($url)
54+
{
55+
$parsed_url = wp_parse_url($url);
56+
57+
return $parsed_url['host'] . (empty($parsed_url['port']) ? null : (':' . $parsed_url['port']));
58+
}
5259
}

includes/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Config
2121

2222
public const VAR_PREFIX = 'btcbi_';
2323

24-
public const VERSION = '2.4.10';
24+
public const VERSION = '2.5.0';
2525

2626
public const DB_VERSION = '1.0';
2727

0 commit comments

Comments
 (0)