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

WordPress Trac noreply at wordpress.org
Thu Aug 8 17:51:31 UTC 2013


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

Comment (by DrewAPicture):

 Replying to [comment:11 ericlewis]:
 > Replying to [comment:5 coffee2code]:
 > > I'm in full agreement in being more specific when we have more WP
 classes, such as WP_Post.
 >
 > Now that we have the WP_Post class, how do you imagine documenting all
 the accepted types here?
 >
 > Something like this?
 >
 > {{{
 > @param int|WP_Post|stdClass $post Post ID, WP_Post object, or stdClass
 resembling a post. Optional, default is the current post from the loop.
 > }}}

 That seems ok.

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


More information about the wp-trac mailing list