Make WordPress Core


Ignore:
Timestamp:
02/13/2024 10:06:22 AM (10 months ago)
Author:
swissspidy
Message:

Permalinks: Detect Caddy web server support.

Support pretty permalinks when Caddy server is detected.

Props swissspidy, mukesh27, sadpencil, cfinnberg, viliamkopecky.
Fixes #41877.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-permalink.php

    r55703 r57612  
    155155        $writable = false;
    156156    }
    157 } elseif ( $is_nginx ) {
     157} elseif ( $is_nginx || $is_caddy ) {
    158158    $writable = false;
    159159} else {
     
    191191                );
    192192            }
    193         } elseif ( ! $is_nginx && $htaccess_update_required && ! $writable ) {
     193        } elseif ( ! $is_nginx && ! $is_caddy && $htaccess_update_required && ! $writable ) {
    194194            $message = sprintf(
    195195                /* translators: %s: .htaccess */
Note: See TracChangeset for help on using the changeset viewer.