Lose return ref from WP_Post::__get(). see #21309

git-svn-id: http://core.svn.wordpress.org/trunk@21654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren 2012-08-29 13:23:54 +00:00
parent f7cff2fd4d
commit a43222bfaf

View File

@ -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 );
}