Make WordPress Core

Changeset 57923


Ignore:
Timestamp:
04/04/2024 01:37:56 PM (11 months ago)
Author:
swissspidy
Message:

Permalinks: Detect FrankenPHP web server support.

Support pretty permalinks when FrankenPHP server is detected, which is built on top of Caddy. Caddy detection was added in [57612].

Props swissspidy, stephenmiracle.
Fixes #60884.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/vars.php

    r57801 r57923  
    128128
    129129/**
    130  * Whether the server software is Caddy or something else.
     130 * Whether the server software is Caddy / FrankenPHP or something else.
    131131 *
    132132 * @global bool $is_caddy
    133133 */
    134 $is_caddy = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Caddy' ) );
     134$is_caddy = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Caddy' ) || str_contains( $_SERVER['SERVER_SOFTWARE'], 'FrankenPHP' ) );
    135135
    136136/**
Note: See TracChangeset for help on using the changeset viewer.