From 40c54bc2384d6d33f25937c4cf0b8340c0670aeb Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 12 Jun 2015 17:00:59 +0000 Subject: [PATCH] `page_template` should be annotated as `@property`, not `@property-read` in `WP_Post`. The property is set on an instance in `wp_insert_post()` Props morganestes. Fixes #32515. git-svn-id: https://develop.svn.wordpress.org/trunk@32729 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 451e29f596..ac6ae9760a 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -459,8 +459,9 @@ function get_post( $post = null, $output = OBJECT, $filter = 'raw' ) { * * @since 3.5.0 * + * @property string $page_template + * * @property-read array $ancestors - * @property-read string $page_template * @property-read int $post_category * @property-read string $tag_input *