Skip to content

Commit

Permalink
fix: return early if WC_Abstract_Privacy is not exist to avoid fatal …
Browse files Browse the repository at this point in the history
…error (#323)
  • Loading branch information
saimonh3 authored and sabbir1991 committed Jul 17, 2018
1 parent f3137b0 commit 685f930
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-dokan-privacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

defined( 'ABSPATH' ) || exit;

if ( ! class_exists( 'WC_Abstract_Privacy' ) ) {
return;
}

/**
* Dokan_Privacy Class.
*/
Expand Down

0 comments on commit 685f930

Please sign in to comment.