Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WP Plugins
eth-redirect-to-latest-post
Commits
300356e6
Verified
Commit
300356e6
authored
Dec 26, 2016
by
Erick Hitter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bail early when there are no permalinks to parse
parent
f555c2d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
eth-redirect-to-latest.php
eth-redirect-to-latest.php
+6
-0
No files found.
eth-redirect-to-latest.php
View file @
300356e6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment