generic_error_handler( sprintf( __( '%1$s depends on the %2$s plugin. Please activate %2$s, then try reactivating %1$s if it is deactivated.', 'ad-blocking-detector' ), 'Ad Blocking Detector - Block List Countermeasure', 'Ad Blocking Detector' ) ); } public function admin_notice_missing_consts_handler() { $this->generic_error_handler( sprintf( __( '%1$s plugin is malformed. Missing crucial constant ABDBLC_ROOT_URL.', 'ad-blocking-detector' ), 'Ad Blocking Detector - Block List Countermeasure' ) ); } public function admin_notice_mismatched_version_handler() { $this->generic_error_handler( sprintf( __( 'The %1$s plugin is a different version than %2$s. You must update the %2$s plugin to prevent breakage.', 'ad-blocking-detector' ), 'Ad Blocking Detector', 'Ad Blocking Detector - Block List Countermeasure' ) ); } protected function generic_error_handler( $msg ) { ?>