Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wpcom_vip_maybe_skip_old_slug_redirect(): Improve compatibility with …
…local setups (#1381) * Caching: Improve compatibility with local setups Switch `$_SERVER[‘DOCUMENT_URI’]` to `$_SERVER[‘REQUEST_URI’] since that is the more popular key to be supported, particularly in local setups. Amends logic by searching for `/http:` at position 0 instead of `http:` at position 1 (and likewise for “https:”). Tidies documentation. Fixes #976. * Lint fix/style alignment * Lint fix
- Loading branch information