[wp-trac] [WordPress Trac] #20495: Update phpDoc to reflect post id or object is valid

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 22 16:30:22 UTC 2012


#20495: Update phpDoc to reflect post id or object is valid
--------------------------+------------------------------
 Reporter:  coffee2code   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Inline Docs   |     Version:  3.3.1
 Severity:  trivial       |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by GaryJ):

 Well, it documents that we know we're expecting an object of type
 `stdClass`, rather than some object for which we don't know the type.

 I agree that a `WP_Post` class would be useful in terms of type-hinting,
 even if it only contains public properties and no methods, but that would
 be a different ticket.

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


More information about the wp-trac mailing list