Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RRZE Webteam
RRZE Cache
Commits
4aefcad2
Commit
4aefcad2
authored
Nov 10, 2020
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/Settings.php
View file @
4aefcad2
...
...
@@ -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'
)
?>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment