Index: wp-includes/link-template.php
===================================================================
--- wp-includes/link-template.php	(revision 18137)
+++ wp-includes/link-template.php	(working copy)
@@ -1065,7 +1065,7 @@
  * @since 1.5.0
  *
  * @param bool $in_same_cat Optional. Whether post should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  * @return mixed Post object if successful. Null if global $post is not set. Empty string if no corresponding post exists.
  */
 function get_previous_post($in_same_cat = false, $excluded_categories = '') {
@@ -1078,7 +1078,7 @@
  * @since 1.5.0
  *
  * @param bool $in_same_cat Optional. Whether post should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  * @return mixed Post object if successful. Null if global $post is not set. Empty string if no corresponding post exists.
  */
 function get_next_post($in_same_cat = false, $excluded_categories = '') {
@@ -1093,7 +1093,7 @@
  * @since 2.5.0
  *
  * @param bool $in_same_cat Optional. Whether post should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  * @param bool $previous Optional. Whether to retrieve previous post.
  * @return mixed Post object if successful. Null if global $post is not set. Empty string if no corresponding post exists.
  */
@@ -1107,7 +1107,7 @@
 
 	$join = '';
 	$posts_in_ex_cats_sql = '';
-	if ( $in_same_cat || !empty($excluded_categories) ) {
+	if ( $in_same_cat || ! empty( $excluded_categories ) ) {
 		$join = " INNER JOIN $wpdb->term_relationships AS tr ON p.ID = tr.object_id INNER JOIN $wpdb->term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id";
 
 		if ( $in_same_cat ) {
@@ -1116,9 +1116,16 @@
 		}
 
 		$posts_in_ex_cats_sql = "AND tt.taxonomy = 'category'";
-		if ( !empty($excluded_categories) ) {
-			$excluded_categories = array_map('intval', explode(' and ', $excluded_categories));
-			if ( !empty($cat_array) ) {
+		if ( ! empty( $excluded_categories ) ) {
+			// back-compat, $excluded_categories used to be IDs separated by " and "
+			if( strpos( $excluded_categories, ' and ' ) !== false )
+				$excluded_categories = explode( ' and ', $excluded_categories );
+			else 
+				$excluded_categories = explode( ',', $excluded_categories );
+			
+			$excluded_categories = array_map( 'intval', $excluded_categories );
+				
+			if ( ! empty( $cat_array ) ) {
 				$excluded_categories = array_diff($excluded_categories, $cat_array);
 				$posts_in_ex_cats_sql = '';
 			}
@@ -1160,7 +1167,7 @@
  *
  * @param string $title Optional. Link title format.
  * @param bool $in_same_cat Optional. Whether link should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  * @param bool $previous Optional, default is true. Whether display link to previous post.
  * @return string
  */
@@ -1197,7 +1204,7 @@
  *
  * @param string $title Optional. Link title format.
  * @param bool $in_same_cat Optional. Whether link should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  */
 function adjacent_posts_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {
 	echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories = '', true);
@@ -1224,7 +1231,7 @@
  *
  * @param string $title Optional. Link title format.
  * @param bool $in_same_cat Optional. Whether link should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  */
 function next_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {
 	echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories = '', false);
@@ -1237,7 +1244,7 @@
  *
  * @param string $title Optional. Link title format.
  * @param bool $in_same_cat Optional. Whether link should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  */
 function prev_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {
 	echo get_adjacent_post_rel_link($title, $in_same_cat, $excluded_categories = '', true);
@@ -1252,7 +1259,7 @@
  * @since 2.8.0
  *
  * @param bool $in_same_cat Optional. Whether returned post should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  * @param bool $start Optional. Whether to retrieve first or last post.
  * @return object
  */
@@ -1298,7 +1305,7 @@
  *
  * @param string $title Optional. Link title format.
  * @param bool $in_same_cat Optional. Whether link should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  * @param bool $start Optional, default is true. Whether display link to first or last post.
  * @return string
  */
@@ -1335,7 +1342,7 @@
  *
  * @param string $title Optional. Link title format.
  * @param bool $in_same_cat Optional. Whether link should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  */
 function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {
 	echo get_boundary_post_rel_link($title, $in_same_cat, $excluded_categories, true);
@@ -1407,7 +1414,7 @@
  * @param string $format Optional. Link anchor format.
  * @param string $link Optional. Link permalink format.
  * @param bool $in_same_cat Optional. Whether link should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  */
 function previous_post_link($format='&laquo; %link', $link='%title', $in_same_cat = false, $excluded_categories = '') {
 	adjacent_post_link($format, $link, $in_same_cat, $excluded_categories, true);
@@ -1421,7 +1428,7 @@
  * @param string $format Optional. Link anchor format.
  * @param string $link Optional. Link permalink format.
  * @param bool $in_same_cat Optional. Whether link should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  */
 function next_post_link($format='%link &raquo;', $link='%title', $in_same_cat = false, $excluded_categories = '') {
 	adjacent_post_link($format, $link, $in_same_cat, $excluded_categories, false);
@@ -1437,7 +1444,7 @@
  * @param string $format Link anchor format.
  * @param string $link Link permalink format.
  * @param bool $in_same_cat Optional. Whether link should be in same category.
- * @param string $excluded_categories Optional. Excluded categories IDs.
+ * @param string $excluded_categories Optional. Comma-separated list of excluded category IDs.
  * @param bool $previous Optional, default is true. Whether display link to previous post.
  */
 function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_categories = '', $previous = true) {
