diff --git a/wp-includes/post.php b/wp-includes/post.php index 8f9804e2c7..ddf817e742 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; }