Index: wp-includes/link-template.php
===================================================================
--- wp-includes/link-template.php	(revision 22326)
+++ wp-includes/link-template.php	(working copy)
@@ -1166,6 +1166,7 @@
 	$op = $previous ? '<' : '>';
 	$order = $previous ? 'DESC' : 'ASC';
 
+	$excluded_categories = apply_filters( "get_{$adjacent}_post_excluded", $excluded_categories );
 	$join  = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_cat, $excluded_categories );
 	$where = apply_filters( "get_{$adjacent}_post_where", $wpdb->prepare("WHERE p.post_date $op %s AND p.post_type = %s AND p.post_status = 'publish' $posts_in_ex_cats_sql", $current_post_date, $post->post_type), $in_same_cat, $excluded_categories );
 	$sort  = apply_filters( "get_{$adjacent}_post_sort", "ORDER BY p.post_date $order LIMIT 1" );
