Generating rel=”prev” and rel=”next” using filters

Try removing , 3. The previous_posts_link_attributes filter doesn’t have any additional arguments, so this should be either 1, or not be set at all (1 is the default).

add_filter( 'previous_posts_link_attributes', 'previous_posts_link_callback', 10 );