Commit 916a52ef authored by Rolf Forst's avatar Rolf Forst
Browse files

cache expiration is no longer displayed in multisite for admins

parent 01655fe2
......@@ -194,21 +194,19 @@ class Settings
<?php settings_fields('rrze-cache') ?>
<table class="form-table">
<?php if (!is_multisite()) : ?>
<tr valign="top">
<th scope="row">
<?php esc_html_e('Lifetime', 'rrze-cache') ?>
</th>
<td>
<label for="rrze-cache-expires">
<?php if (!is_multisite()) : ?>
<input type="number" min="1" step="1" name="rrze_cache[cache_expires]" id="rrze-cache-expires" value="<?php echo esc_attr($this->options->cache_expires) ?>" class="small-text">
<?php echo esc_html(_nx('Minute', 'Minutes', $this->options->cache_expires, 'rrze-cache-expires', 'rrze-cache')) ?>
<?php else: ?>
<?php echo esc_html(sprintf(_nx('%s minute.', '%s minutes.', $this->siteOptions->cache_expires, 'rrze-cache-expires', 'rrze-cache'), number_format_i18n($this->siteOptions->cache_expires))) ?>
<?php endif ?>
</label>
</td>
</tr>
<?php endif ?>
<tr valign="top">
<th scope="row">
<?php esc_html_e('Rules', 'rrze-cache') ?>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment