[wp-hackers] Removing the canonical URL redirection for /page/1 in WP 3.0
johnbillion+wp at gmail.com
Wed Sep 8 16:33:00 UTC 2010
IIRC you should return $redirect_url rather than 'true' in that filter
(except when you're returning 'false' of course). The return value is
used as the URL to redirect to.
On Wed, Sep 8, 2010 at 4:57 PM, Mike Schinkel
<mikeschinkel at newclarity.net> wrote:
> n Sep 8, 2010, at 10:43 AM, David Morris wrote:
>> That worked great! The only thing I had to change was to add two parameters
>> to the add_filter() call, for priority and number of arguments. For some
>> reason, the $requested_url wasn't being sent to my filter without specifying
>> a 2 for that parameter in the add_filter() call.
> Happens when I suggest but don't test. :-(
> Sorry about missing that; hope the oversight didn't cause too much trouble.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers