WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20495, comment 12


Ignore:
Timestamp:
08/08/2013 05:48:41 PM (5 years ago)
Author:
DrewAPicture
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20495, comment 12

    initial v1  
    1 Replying to [comment:11 ericlewis]:
    2 > Replying to [comment:5 coffee2code]:
    3 > > I'm in full agreement in being more specific when we have more WP classes, such as WP_Post.
    4 >
    5 > Now that we have the WP_Post class, how do you imagine documenting all the accepted types here?
    6 >
    7 > Something like this?
    8 >
    9 > {{{
    10 > @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.
    11 > }}}
    12 
    13 The type should be `object`, leaving the parameter description to spell out which object types are accepted.
     1Edit: nevermind.