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:
parent
5986fef232
commit
a8e913063a
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user