Update dashboard JS and frontend class
This commit is contained in:
1 parent
48c7d23261
commit
2b1424d127
8 files changed
+245
-98
No files matched your search
@@ -24,11 +24,11 @@ class HSSM_API_Client {
|
||||
public function get_slides() {
|
||||
$api_url = get_option( 'hssm_api_url' );
|
||||
$site_slug = get_option( 'hssm_client_site_slug' );
|
||||
$api_key = 'HI_SCHOOL_FIXED_API_KEY'; // Hardcoded fixed API key
|
||||
$api_key = get_option( 'hssm_client_api_key', '' );
|
||||
$cache_duration = get_option( 'hssm_cache_duration', 3600 );
|
||||
|
||||
if ( empty( $api_url ) || empty( $site_slug ) || empty( $api_key ) ) { // Added $api_key check here
|
||||
return new WP_Error( 'missing_config', __( 'API URL, Site Slug, or API Key not configured.', 'hi-school-slide-manager' ) ); // Updated error message
|
||||
if ( empty( $api_url ) || empty( $site_slug ) || empty( $api_key ) ) {
|
||||
return new WP_Error( 'missing_config', __( 'API URL, site slug, or client API key is not configured.', 'hi-school-slide-manager' ) );
|
||||
}
|
||||
|
||||
// Check cache first
|
||||
|
||||
Reference in new issue
Block a user