Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Prevent CLI errors if WP isn't loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed Jan 8, 2019
1 parent 16b3fcc commit 71e24d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

add_action( 'after_setup_theme', 'eig_module_sso_register' );
if ( function_exists( 'add_action' ) ) {
add_action( 'after_setup_theme', 'eig_module_sso_register' );
}

/**
* Register the single sign-on module
Expand All @@ -25,4 +27,4 @@ function eig_module_sso_load() {
add_action( 'wp_ajax_nopriv_sso-check', 'eig_sso_handler' );
add_action( 'wp_ajax_sso-check', 'eig_sso_handler' );

}
}

0 comments on commit 71e24d9

Please sign in to comment.