diff --git a/eth-redirect-to-latest.php b/eth-redirect-to-latest.php index 46396f6285bde84b7a351fa8bb2278859d235c40..f4404a8975d1636a8ba3de6c32f402913eee9f9c 100644 --- a/eth-redirect-to-latest.php +++ b/eth-redirect-to-latest.php @@ -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