# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /Users/Francesco/NetBeansProjects/wptrunk/trunk
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: wp-includes/capabilities.php
--- wp-includes/capabilities.php Base (BASE)
+++ wp-includes/capabilities.php Locally Modified (Based On LOCAL)
@@ -478,7 +478,7 @@
 		if ( empty( $id ) && empty( $name ) )
 			return;
 
-		if ( ! is_numeric( $id ) ) {
+		if ( empty( $name ) && ! is_numeric( $id ) ) {
 			$name = $id;
 			$id = 0;
 		}
