mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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:
parent
9e6f52a03d
commit
4428a031a3
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user