From d17f4409c320331b395d545a394348c0b42ae8c5 Mon Sep 17 00:00:00 2001 From: duck_ Date: Mon, 14 Nov 2011 21:32:56 +0000 Subject: [PATCH] Don't pass $post_type as get_page()'s $filter argument. Copy-and-paste error. Removal improves get_page_by_path() performance dramatically by stopping sanitize_post() being called. Fixes #19175. git-svn-id: http://svn.automattic.com/wordpress/trunk@19283 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 8f9804e2c..ddf817e74 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -3181,7 +3181,7 @@ function get_page_by_path($page_path, $output = OBJECT, $post_type = 'page') { } if ( $foundid ) - return get_page($foundid, $output, $post_type); + return get_page( $foundid, $output ); return null; }