Skip to content

Commit 2438ea4

Browse files
committed
Tell wordpress we support url rewriting
1 parent dca9d9e commit 2438ea4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

router.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ function ( $url ) {
112112
20
113113
);
114114

115+
add_filter( 'got_url_rewrite', '__return_true' );
116+
115117
$_SERVER['SERVER_ADDR'] = gethostbyname( $_SERVER['SERVER_NAME'] );
116118
$wpcli_server_root = $_SERVER['DOCUMENT_ROOT'];
117119
// phpcs:ignore WordPress.WP.AlternativeFunctions.parse_url_parse_url

0 commit comments

Comments
 (0)