/home/fortodpl/thecutediva.com/wp-content/plugins/litespeed-cache/tpl/banner
Edit: /home/fortodpl/thecutediva.com/wp-content/plugins/litespeed-cache/tpl/banner/new_version.php (3899B)
conf( Base::O_AUTO_UPGRADE ) ) {
return;
}
$current = get_site_transient( 'update_plugins' );
if ( ! isset( $current->response[ Core::PLUGIN_FILE ] ) ) {
return;
}
// Check for new version every 12 hours.
$last_check = empty( $this->_summary['new_version.last_check'] ) ? 0 : $this->_summary['new_version.last_check'];
if ( time() - $last_check > 43200 ) {
GUI::save_summary( array( 'new_version.last_check' => time() ) );
// Detect version
$auto_v = Cloud::version_check( 'new_version_banner' );
if ( ! empty( $auto_v['latest'] ) ) {
GUI::save_summary( array( 'new_version.v' => $auto_v['latest'] ) );
}
// After detect, don't show, just return and show next time
return;
}
if ( ! isset( $this->_summary['new_version.v'] ) || version_compare( Core::VER, $this->_summary['new_version.v'], '>=' ) ) {
return;
}
// Banner can be shown now.
$this->_promo_true = true;
if ( $check_only ) {
return;
}
?>