Changeset 57612
- Timestamp:
- 02/13/2024 10:06:22 AM (11 months ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/misc.php
r57595 r57612 40 40 * 41 41 * @global bool $is_nginx 42 * @global bool $is_caddy 42 43 * 43 44 * @return bool Whether the server supports URL rewriting. 44 45 */ 45 46 function got_url_rewrite() { 46 $got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || iis7_supports_permalinks() );47 $got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || $GLOBALS['is_caddy'] || iis7_supports_permalinks() ); 47 48 48 49 /** -
trunk/src/wp-admin/options-permalink.php
r55703 r57612 155 155 $writable = false; 156 156 } 157 } elseif ( $is_nginx ) {157 } elseif ( $is_nginx || $is_caddy ) { 158 158 $writable = false; 159 159 } else { … … 191 191 ); 192 192 } 193 } elseif ( ! $is_nginx && $htaccess_update_required && ! $writable ) {193 } elseif ( ! $is_nginx && ! $is_caddy && $htaccess_update_required && ! $writable ) { 194 194 $message = sprintf( 195 195 /* translators: %s: .htaccess */ -
trunk/src/wp-includes/vars.php
r56638 r57612 18 18 global $pagenow, 19 19 $is_lynx, $is_gecko, $is_winIE, $is_macIE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone, $is_IE, $is_edge, 20 $is_apache, $is_IIS, $is_iis7, $is_nginx ;20 $is_apache, $is_IIS, $is_iis7, $is_nginx, $is_caddy; 21 21 22 22 // On which page are we? … … 128 128 129 129 /** 130 * Whether the server software is Caddy or something else 131 * 132 * @global bool $is_caddy 133 */ 134 $is_caddy = ( str_contains( $_SERVER['SERVER_SOFTWARE'], 'Caddy' ) ); 135 136 /** 130 137 * Whether the server software is IIS or something else 131 138 *
Note: See TracChangeset
for help on using the changeset viewer.