Commit 300356e6 authored by Erick Hitter's avatar Erick Hitter

Bail early when there are no permalinks to parse

parent f555c2d0
......@@ -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 ) {
// By default, there's also nothing to do
$should_intercept = false;
// Check if request is for our slug
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment