The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[Plugin: Infinite Scroll] wp_inf_scroll_404 fires too early (2 posts)

  1. Ben Balter
    Plugin Author

    Posted 4 years ago #

    The function wp_inf_scroll_404 fires on the wp hook. wp() handles most redirects, except if a post is renamed, the old slug redirect happens on the following hook template_redirect. Tested on trunk (3.3).

    The quick fix is simply to move the hook from wp to template_redirect, which allows both old_url redirects and infinite scroll to work.

    The longer fix might be to take a look at handle_404 in /wp-includes/class-wp.php for a more consistent handling of 404s.

    Either way, big fan of the plugin. Thanks for the hard work.


  2. beaver6813
    Plugin Author

    Posted 4 years ago #

    Thanks for the heads up Ben, I've changed the hook to template_redirect, in the long term I'll look at tying in better with how WordPress handles 404s.

    I've finally gotten around to uploading RC2 of the latest version so if you could give it a whirl it'd be really appreciated :)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Infinite-Scroll
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic