WordPress.org

Make WordPress Core

Changeset 29752


Ignore:
Timestamp:
09/21/2014 08:54:37 AM (7 years ago)
Author:
DrewAPicture
Message:

Add some missing information to the inline docs for get_post_types().

  • Improves the @see reference for register_post_type() to mention that it contains information about accepted arguments
  • Adds a description of the accepted values for the $operator parameter
  • Fixes a typo

Fixes #29721.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r29745 r29752  
    11621162 * @global array $wp_post_types List of post types.
    11631163 *
    1164  * @see register_post_type()
     1164 * @see register_post_type() for accepted arguments.
    11651165 *
    11661166 * @param array|string $args     Optional. An array of key => value arguments to match against
     
    11681168 * @param string       $output   Optional. The type of output to return. Accepts post type 'names'
    11691169 *                               or 'objects'. Default 'names'.
    1170  * @param string       $operator Optaionl. The logical operation to perform. 'or' means only one
     1170 * @param string       $operator Optional. The logical operation to perform. 'or' means only one
    11711171 *                               element from the array needs to match; 'and' means all elements
    1172  *                               must match. Default 'and'.
     1172 *                               must match. Accepts 'or' or 'and'. Default 'and'.
    11731173 * @return array A list of post type names or objects.
    11741174 */
Note: See TracChangeset for help on using the changeset viewer.