Index: wp-includes/post.php
===================================================================
--- wp-includes/post.php	(revision 24706)
+++ wp-includes/post.php	(working copy)
@@ -3423,7 +3423,7 @@
 	$in_string = "'". implode( "','", $parts ) . "'";
 	$post_type_sql = $post_type;
 	$wpdb->escape_by_ref( $post_type_sql );
-	$pages = $wpdb->get_results( "SELECT ID, post_name, post_parent, post_type FROM $wpdb->posts WHERE post_name IN ($in_string) AND (post_type = '$post_type_sql' OR post_type = 'attachment')", OBJECT_K );
+	$pages = $wpdb->get_results( apply_filters( 'get_page_by_path_request', "SELECT ID, post_name, post_parent, post_type FROM $wpdb->posts WHERE post_name IN ($in_string) AND (post_type = '$post_type_sql' OR post_type = 'attachment')" ), OBJECT_K );
 
 	$revparts = array_reverse( $parts );
 
