From a43222bfafc105e6d2a43f2a63b60e4963b16136 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 29 Aug 2012 13:23:54 +0000 Subject: [PATCH] Lose return ref from WP_Post::__get(). see #21309 git-svn-id: http://core.svn.wordpress.org/trunk@21654 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 01f108b13b..0d60f3daa0 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -487,7 +487,7 @@ final class WP_Post { return metadata_exists( 'post', $this->ID, $key ); } - public function &__get( $key ) { + public function __get( $key ) { if ( 'page_template' == $key && $this->__isset( $key ) ) { $_ref = get_post_meta( $this->ID, '_wp_page_template', true ); }