Index: post.php
===================================================================
--- post.php	(revision 11978)
+++ post.php	(working copy)
@@ -2128,6 +2128,24 @@
 }
 
 /**
+ * Retrieve a post given its title.
+ *
+ * @uses $wpdb
+ *
+ * @param string $post_title Post title
+ * @param string $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A.
+ * @return mixed Post data if successful (type depends on $output) | Null if no posts found
+ */
+function get_post_by_title($post_title, $output = OBJECT) {
+	global $wpdb;
+	$post = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_type='post'", $post_title ));
+	if ( $post )
+		return get_post($post, $output);
+
+	return null;
+}
+
+/**
  * Retrieve child pages from list of pages matching page ID.
  *
  * Matches against the pages parameter against the page ID. Also matches all

