Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions router.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ function ( $url ) {
20
);

add_filter( 'got_url_rewrite', '__return_true' );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency with other filters in this file (like the one for option_home) and for better readability, it would be helpful to add a comment explaining the purpose of this filter. This will make it clearer to future maintainers why this line is necessary.

// Tell WordPress we support URL rewriting, so that pretty permalinks work.
add_filter( 'got_url_rewrite', '__return_true' );


$_SERVER['SERVER_ADDR'] = gethostbyname( $_SERVER['SERVER_NAME'] );
$wpcli_server_root = $_SERVER['DOCUMENT_ROOT'];
// phpcs:ignore WordPress.WP.AlternativeFunctions.parse_url_parse_url
Expand Down