[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 18:03:26 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 coffee2code):

 Specifying something more specific than object warrants a separate ticket.
 Nowhere in WP (other than a few instances in wp-admin/includes/post.php)
 is stdClass used in the phpDoc to designate a param or return type. The
 use of "object" is the current convention.

 I'm in full agreement in being more specific when we have more WP classes,
 such as WP_Post.

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


More information about the wp-trac mailing list