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

git-svn-id: https://develop.svn.wordpress.org/trunk@21654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-08-29 13:23:54 +00:00
parent 5986fef232
commit a8e913063a

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