Commit 4aefcad2 authored by Rolf Forst's avatar Rolf Forst
Browse files

Merge branch 'dev' into 'master'

cache expiration is no longer displayed in multisite for admins

See merge request !15
parents 370a3b6a 916a52ef
......@@ -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') ?>
<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 ?>
<?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