Skip to content

Commit

Permalink
Added a check for whether or not FEE has been activated.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbaniel committed Jul 27, 2015
1 parent 740ba0d commit 8cd8e0e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions social-paper.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ public function __construct() {
" ) );
return;
}
if ( !class_exists( 'FEE' ) ) {
add_action( 'admin_notices', create_function('', '
echo "<div class=\"error\">";
$notice = __( \'Social Paper requires the plugin WP Front End Editor to work. Please enable it through the plugin repository or by downloading it\', \'social paper\' );
echo $notice;
echo " <a href=\"https://wordpress.org/plugins/wp-front-end-editor/\">here</a>.";
echo "</div>";
' ) );
return;
}

$this->properties();
$this->includes();
Expand Down

0 comments on commit 8cd8e0e

Please sign in to comment.