Skip to content

Commit

Permalink
Added a return for when CFS isn't activated
Browse files Browse the repository at this point in the history
Technically this shouldn’t really be necessary, but we might as well
avoid loading code needlessly if CFS isn’t turned on.
  • Loading branch information
robneu committed Feb 19, 2015
1 parent aeb6692 commit 5db8566
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ class CFS_Markdown_Addon {
* @return void
*/
public function run() {
// Return early if CFS isn't activated.
if ( ! function_exists( 'CFS' ) ) {
return;
}
$this->load_textdomain();
$this->includes();
add_filter( 'cfs_field_types', array( $this, 'cfs_field_types' ) );
Expand Down

0 comments on commit 5db8566

Please sign in to comment.