mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
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: https://develop.svn.wordpress.org/trunk@19283 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
668a850007
commit
9c824b6687
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user