芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/public_html/wp-content/plugins/litespeed-cache/tpl/banner/new_version.php
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; } ?>
:
_summary['new_version.v'] ) ); ?>
1 ); $url = Utility::build_url( Router::ACTION_CONF, Conf::TYPE_SET, false, null, $cfg ); ?>
'new_version' ) ); ?>
'new_version', 'later' => 1, ) ); ?>