summaryrefslogtreecommitdiffstats
path: root/wp-admin/options-permalink.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:26 +0000
commit30883c26bdceb9eaf32c8d4a1b0c1bce223b5226 (patch)
tree39a02e2aeb21ab5b7923c6f5757d66d55b708912 /wp-admin/options-permalink.php
parentAdding upstream version 6.4.3+dfsg1. (diff)
downloadwordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.tar.xz
wordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.zip
Adding upstream version 6.5+dfsg1.upstream/6.5+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-admin/options-permalink.php')
-rw-r--r--wp-admin/options-permalink.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php
index 379dc8a..46da9be 100644
--- a/wp-admin/options-permalink.php
+++ b/wp-admin/options-permalink.php
@@ -154,7 +154,7 @@ if ( $iis7_permalinks ) {
} else {
$writable = false;
}
-} elseif ( $is_nginx ) {
+} elseif ( $is_nginx || $is_caddy ) {
$writable = false;
} else {
if ( ( ! file_exists( $home_path . '.htaccess' )
@@ -190,7 +190,7 @@ if ( $structure_updated ) {
'<code>web.config</code>'
);
}
- } elseif ( ! $is_nginx && $htaccess_update_required && ! $writable ) {
+ } elseif ( ! $is_nginx && ! $is_caddy && $htaccess_update_required && ! $writable ) {
$message = sprintf(
/* translators: %s: .htaccess */
__( 'You should update your %s file now.' ),