[wp-trac] [WordPress Trac] #32515: Don't declare class properties readonly if they're written to later

WordPress Trac noreply at wordpress.org
Fri Jun 12 17:01:01 UTC 2015


#32515: Don't declare class properties readonly if they're written to later
-------------------------------+-----------------------------
 Reporter:  morganestes        |       Owner:  wonderboymusic
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.3
Component:  Posts, Post Types  |     Version:  4.2
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:  docs
-------------------------------+-----------------------------
Changes (by wonderboymusic):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32729"]:
 {{{
 #!CommitTicketReference repository="" revision="32729"
 `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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32515#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list