From cca3890c84df3c9ba8999f99365fd9e06ba65547 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 21 Sep 2014 08:55:18 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@29752 git-svn-id: http://core.svn.wordpress.org/trunk@29524 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 94ec8f2c50..170e2e31dc 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1161,15 +1161,15 @@ function get_post_type_object( $post_type ) { * * @global array $wp_post_types List of post types. * - * @see register_post_type() + * @see register_post_type() for accepted arguments. * * @param array|string $args Optional. An array of key => value arguments to match against * the post type objects. Default empty array. * @param string $output Optional. The type of output to return. Accepts post type 'names' * or 'objects'. Default 'names'. - * @param string $operator Optaionl. The logical operation to perform. 'or' means only one + * @param string $operator Optional. The logical operation to perform. 'or' means only one * element from the array needs to match; 'and' means all elements - * must match. Default 'and'. + * must match. Accepts 'or' or 'and'. Default 'and'. * @return array A list of post type names or objects. */ function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) {