From 4428a031a378b0b59688d7de89ba8fc005bf2760 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sun, 22 May 2016 16:19:29 +0000 Subject: [PATCH] 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 --- wp-includes/post.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index ceaa1d96a8..8a0e36b68b 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -4245,7 +4245,7 @@ function get_page_by_path( $page_path, $output = OBJECT, $post_type = 'page' ) { if ( '0' === $cached || 0 === $cached ) { return; } else { - return get_post( $cached ); + return get_post( $cached, $output ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 559b054418..cba97a824c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.