PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
← All changes | libraries/freemius/includes/managers/class-fs-checkout-manager.php +10 -1 3.3.2 → 3.4 View file →
@@ -111,8 +111,17 @@
111 111 $is_premium = false;
112 112 }
113 113 }
114 114
115 + // Override the checkout context with the add-on's purchase details so the checkout flow is initialized for the selected add-on instead of the parent product.
116 + $context_params['plugin_id'] = $plugin_id;
117 +
118 + foreach ( array( 'plan_id', 'pricing_id', 'billing_cycle', 'is_trial' ) as $param ) {
119 + if ( fs_request_has( $param ) ) {
120 + $context_params[ $param ] = fs_request_get( $param );
121 + }
122 + }
123 +
115 124 // Get site context secure params.
116 125 if ( $fs->is_registered() ) {
117 126 $site = $fs->get_site();
118 127
@@ -186,9 +195,9 @@
186 195
187 196 // Allowlist only allowed query params.
188 197 $filtered_params = array_intersect_key($filtered_params, $this->_allowed_custom_params);
189 198
190 - return array_merge( $context_params, $filtered_params, $_GET, array(
199 + return array_merge( $_GET, $context_params, $filtered_params, array(
191 200 // Current plugin version.
192 201 'plugin_version' => $fs->get_plugin_version(),
193 202 'sdk_version' => WP_FS__SDK_VERSION,
194 203 'is_premium' => $is_premium ? 'true' : 'false',