PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 2.12.8
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v2.12.8
2.12.8 2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 All 98 releases
← All changes | inc/lib/bsf-analytics/class-bsf-analytics.php +5 -2 2.8.0 → 2.12.8 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 }
@@ -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(