mirror of
git://develop.git.wordpress.org/
synced 2025-02-21 23:22:31 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57923 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
89bd74fea1
commit
554f5b5723
@ -127,11 +127,11 @@ $is_apache = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Apache' ) || str_cont
|
||||
$is_nginx = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'nginx' ) );
|
||||
|
||||
/**
|
||||
* Whether the server software is Caddy or something else.
|
||||
* Whether the server software is Caddy / FrankenPHP or something else.
|
||||
*
|
||||
* @global bool $is_caddy
|
||||
*/
|
||||
$is_caddy = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Caddy' ) );
|
||||
$is_caddy = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Caddy' ) || str_contains( $_SERVER['SERVER_SOFTWARE'], 'FrankenPHP' ) );
|
||||
|
||||
/**
|
||||
* Whether the server software is IIS or something else.
|
||||
|
Loading…
x
Reference in New Issue
Block a user