From 191a7ead45003cf89b16ddd28485eb7663964ca7 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Sun, 21 Sep 2014 08:54:37 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@29752 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 94ec8f2c50..170e2e31dc 100644 --- a/src/wp-includes/post.php +++ b/src/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' ) {