Skip to content
Snippets Groups Projects
Verified Commit 300356e6 authored by Erick Hitter's avatar Erick Hitter
Browse files

Bail early when there are no permalinks to parse

parent f555c2d0
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,12 @@ class ETH_Redirect_To_Latest_Post {
* Redirect to the latest post any requests made to plugin's slug
*/
public function action_parse_request( $r ) {
// Nothing to do if permalinks aren't enabled
if ( ! $r->did_permalink ) {
return;
}
// By default, there's also nothing to do
$should_intercept = false;
// Check if request is for our slug
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment