In `get_page_by_path()`, values fetched from cache should obey `$output` param.

Introduced in [37479].

Props spacedmonkey.
Fixes #36711.
Built from https://develop.svn.wordpress.org/trunk@37481


git-svn-id: http://core.svn.wordpress.org/trunk@37449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2016-05-22 16:19:29 +00:00
parent 9e6f52a03d
commit 4428a031a3
2 changed files with 2 additions and 2 deletions

View File

@ -4245,7 +4245,7 @@ function get_page_by_path( $page_path, $output = OBJECT, $post_type = 'page' ) {
if ( '0' === $cached || 0 === $cached ) { if ( '0' === $cached || 0 === $cached ) {
return; return;
} else { } else {
return get_post( $cached ); return get_post( $cached, $output );
} }
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.6-alpha-37480'; $wp_version = '4.6-alpha-37481';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.