Index: wp-includes/post-template.php
===================================================================
--- wp-includes/post-template.php	(revision 23362)
+++ wp-includes/post-template.php	(working copy)
@@ -119,6 +119,28 @@
 }
 
 /**
+ * Retrieve the slug of the current post in the WordPress Loop, or an arbitrary post.
+ *
+ * @since 
+ * 
+ * @uses $post
+ * @param int $id Optional. ID of an arbitrary post. If none is given, uses the value of the current post inside the Loop 
+ * @return string|false String if post slug was retrieved, or false if it wasn't
+ */
+function get_the_slug( $id = 0 ) {
+	global $post;
+			
+	if( $id ) {
+		$arbitrary_post = get_post( $id );
+		$slug = is_a( $arbitrary_post, 'WP_Post' ) ? $arbitrary_post->post_name : false;
+	} else {
+		$slug = isset( $post->post_name ) ? $post->post_name : false;
+	}
+	
+	return $slug;
+}
+
+/**
  * Display the Post Global Unique Identifier (guid).
  *
  * The guid will appear to be a link, but should not be used as an link to the
