hide_api_key) $showApiKey = false; elseif($this->is_multisite && $this->is_constant_key) $showApiKey = false; else { $showApiKey = true; // is_mainsite, multisite, no constant. } $editApiKey = (! $this->is_constant_key && $showApiKey) ? true : false; // Notices for fringe cases if (! $this->is_verifiedkey && $this->hide_api_key && ! $this->is_constant_key) { Notice::addError(__('wp-config.php is hiding the API key, but no API key was found. Remove the constant, or define the SHORTPIXEL_API_KEY constant as well', 'shortpixel-image-optimiser')); } elseif ($this->is_constant_key && ! $this->is_verifiedkey) { $dkey = ($this->hide_api_key) ? '' : '(' . SHORTPIXEL_API_KEY. ')'; Notice::addError(sprintf(__('Constant API Key is not verified. Please check if this is a valid API key %s'),$dkey)); } $adminEmail = get_bloginfo('admin_email'); ?>

form_action, 'sp-nonce'); ?>

', esc_html(sanitize_email($adminEmail)), ''); } else { esc_html_e('Please input your e-mail address and press the Request Key button.','shortpixel-image-optimiser'); } ?>

form_action, 'sp-nonce'); ?>
is_constant_key) $canValidate = true; ?> > " class="regular-text"> is_constant_key) { ?>