lscache_wp
lscache_wp copied to clipboard
API key notification shown when not using Quic Cloud
I noticed that the dashboard notification shows asking for an API key to use the online services, even though I do not have those settings enabled. Looking at the code, I believe this is caused by the following lines in the show_promo() function:
if ( ! $this->_api_key ) {
Admin_Display::error( Error::msg( 'lack_of_api_key' ), true );
}
If I understand correctly, this means that an API key is being requested every time a promo/notification is requested. Can we remove this requirement? The notification which requests the API key is confusing when that service is not required.