WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Ben Balter
    Member
    Plugin Author

    Posted 2 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.

    http://wordpress.org/extend/plugins/infinite-scroll/

  2. beaver6813
    Member
    Plugin Author

    Posted 2 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 :)

    http://downloads.wordpress.org/plugin/infinite-scroll.2.0b.111218RC2.zip

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic