lscache_wp icon indicating copy to clipboard operation
lscache_wp copied to clipboard

API key notification shown when not using Quic Cloud

Open dcx15 opened this issue 5 years ago • 0 comments

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.

dcx15 avatar Jul 07 '20 07:07 dcx15