PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.13.4
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.13.4
3.13.4 3.13.3 3.13.2 3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 All 262 releases
← All changes | includes/core/rest-api/Controllers/DashboardController.php +10 -11 3.13.3 → 3.13.4 View file →
@@ -3,8 +3,9 @@
3 3
4 4 namespace WPFunnels\Rest\Controllers;
5 5
6 6 use WPFunnels\Report\ReportGenerator;
7 +use WPFunnels\Menu\Wpfnl_Menus;
7 8 use WPFunnels\Wpfnl_functions;
8 9
9 10 /**
10 11 *
@@ -493,11 +494,9 @@
493 494 ));
494 495
495 496 if (!empty($recent_funnels)) {
496 497 // The upsell step is added on the canvas, so that is where its action goes.
497 - $funnel_builder_url = admin_url(
498 - sprintf('admin.php?page=edit_funnel&id=%d', $recent_funnels[0])
499 - );
498 + $funnel_builder_url = Wpfnl_Menus::react_canvas_url($recent_funnels[0]);
500 499 }
501 500
502 501 foreach ($recent_funnels as $recent_funnel_id) {
503 502 $recent_steps = Wpfnl_functions::get_steps($recent_funnel_id);
@@ -513,16 +512,16 @@
513 512 if ('checkout' !== $recent_step_type || !$recent_step_id) {
514 513 continue;
515 514 }
516 515
517 - // The hash is what tells the canvas which step settings drawer and
518 - // tab to open once the funnel editor has finished loading.
519 - $order_bump_url = admin_url(
520 - sprintf(
521 - 'admin.php?page=edit_funnel&id=%d&step_id=%d#%d/settings/order-bump/',
522 - $recent_funnel_id,
523 - $recent_step_id,
524 - $recent_step_id
516 + // The deep link tells the canvas which step settings drawer and
517 + // tab to open once the funnel's steps have loaded.
518 + $order_bump_url = Wpfnl_Menus::react_canvas_url(
519 + $recent_funnel_id,
520 + array(
521 + 'step' => $recent_step_id,
522 + 'open' => 'settings',
523 + 'tab' => 'order-bump',
525 524 )
526 525 );
527 526 break 2;
528 527 }