[wp-trac] [WordPress Trac] #25130: Docblock documentation for WP_Query -> post property

WordPress Trac noreply at wordpress.org
Fri Aug 23 23:01:40 UTC 2013


#25130: Docblock documentation for WP_Query -> post property
----------------------------------+---------------------
 Reporter:  lgedeon               |       Owner:  nacin
     Type:  defect (bug)          |      Status:  closed
 Priority:  normal                |   Milestone:  3.7
Component:  Inline Docs           |     Version:  3.0
 Severity:  normal                |  Resolution:  fixed
 Keywords:  needs-patch easy-fix  |
----------------------------------+---------------------

Comment (by nacin):

 I think [25110] is good as-is. If there is no current post then yes it
 will contain nothing (which is also how it is defined in the class).

 If every class property's type also accounted for the undefined case,
 you'd need to exclude all objects as you can't instantiate objects when
 defining a property.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25130#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list