| @@ -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( |