WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #11338, comment 20


Ignore:
Timestamp:
04/26/2014 08:53:43 PM (7 years ago)
Author:
DrewAPicture
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11338, comment 20

    initial v1  
    22
    33Two things:
    4 * Where the arguments are currently listed in quotes, e.g. `'child_of`, they should be notated them as variables instead: `$child_of`.
    5 * Since the purpose of the hash notation not just to spell out what the default arguments are mean, but what the actual default values are, you also need to list the default at the end of the descriptions and also the values they accept only certain values are accepted.
     4* Where the arguments are currently listed in quotes, e.g. `'child_of`, they should be notated as variables instead: `$child_of`.
     5* The purpose of the hash notation is both to spell out what the default arguments mean, as well as to define what the actual default values are. So you also need to list the default at the end of the descriptions, and the values they accept if only certain values are accepted.
    66
    77Take a look at the [source:trunk/src/wp-includes/post.php#L2874 PHPDoc block for wp_insert_post] to see what I mean. Thanks again!