…ing cache See #32
…return WP_Error objects on failure
… check because if false or an empty array is returned the foreach loop won't execute See #26
…bove the loop so it doesn't get called many times.
- lines 712-715: Adds a filter around the $redirect to allow setting up redirect conditions programmatically. Allows you to do things like only redirect if the user is not an admin.. or only redirect on Tuesdays, or if the redirect is to '/about' and the user is registered, redirect somewhere else, etc
If parse_url() does not return a path key, the check for the value of path can cause a warning in PHP. Check to see that the path key exists before trying to compare it.
…with a sub-site, we need to chop off the path from the requested path before checking the requested path against redirect paths
…tus which is called BEFORE save_post. However, save_post is where all the important info is saved so we need to update cache after it.
…ating a new redirect