PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
← All changes | libraries/bsf-analytics/class-bsf-analytics.php +9 -6 3.0.1 → 3.3.0 View file →
@@ -92,9 +92,9 @@
92 92 */
93 93 public function set_actions() {
94 94
95 95 foreach ( $this->entities as $key => $data ) {
96 - add_action( 'astra_notice_before_markup_' . $key . '-optin-notice', array( $this, 'enqueue_assets' ) );
96 + add_action( 'bsf_admin_notice_before_markup_' . $key . '-optin-notice', array( $this, 'enqueue_assets' ) );
97 97 add_action( 'update_option_' . $key . '_usage_optin', array( $this, 'update_analytics_option_callback' ), 10, 3 );
98 98 add_action( 'add_option_' . $key . '_usage_optin', array( $this, 'add_analytics_option_callback' ), 10, 2 );
99 99 }
100 100 }
@@ -234,8 +234,11 @@
234 234 *
235 235 * @since 1.0.0
236 236 */
237 237 public function option_notice() {
238 + if ( ! class_exists( 'BSF_Admin_Notices' ) ) {
239 + return;
240 + }
238 241
239 242 if ( ! current_user_can( 'manage_options' ) ) {
240 243 return;
241 244 }
@@ -267,11 +270,11 @@
267 270
268 271 /* translators: %s product name */
269 272 $notice_string = sprintf(
270 273 __(
271 - 'Help shape the future of %1$s!<br><br>Become a contributor by sharing how you use %1$s — so we can build features that matter to you, fix issues faster, and make smarter decisions. We only collect <strong>non-sensitive</strong> information like your PHP version and which features you use.'
274 + '<strong>Help shape the future of %1$s.</strong><br><br>Share how you use the plugin so we can build features that matter, fix issues faster, and make smarter decisions.'
272 275 ),
273 - '<strong>' . esc_html( $data['product_name'] ) . '</strong>'
276 + esc_html( $data['product_name'] )
274 277 );
275 278
276 279 if ( is_multisite() ) {
277 280 $notice_string .= __( 'This will be applicable for all sites from the network.' );
@@ -278,9 +281,9 @@
278 281 }
279 282
280 283 $language_dir = is_rtl() ? 'rtl' : 'ltr';
281 284
282 - Astra_Notices::add_notice(
285 + BSF_Admin_Notices::add_notice(
283 286 array(
284 287 'id' => $key . '-optin-notice',
285 288 'type' => '',
286 289 'message' => sprintf(
@@ -307,9 +310,9 @@
307 310 'bsf_analytics_source' => $key,
308 311 )
309 312 )
310 313 ),
311 - __( 'Sure, count me in!' ),
314 + __( 'Happy to help!' ),
312 315 esc_url(
313 316 add_query_arg(
314 317 array(
315 318 $key . '_analytics_optin' => 'no',
@@ -318,9 +321,9 @@
318 321 )
319 322 )
320 323 ),
321 324 MONTH_IN_SECONDS,
322 - __( 'No, thanks' )
325 + __( 'Skip' )
323 326 ),
324 327 'show_if' => true,
325 328 'repeat-notice-after' => false,
326 329 'priority' => 18,