wp-cli / profile-command

Quickly identify what's slow with WordPress
MIT License
266 stars 29 forks source link

A Trailing Slash Gets Added To URL Causing A Redirect #154

Closed lots0logs closed 1 year ago

lots0logs commented 5 years ago

The change made here causes a redirect on my site which results in the profile command failing. Is there a way to support both cases?

ifnull commented 2 years ago

My workaround was to add the following to my theme's functions.php file.

remove_filter('template_redirect','redirect_canonical');