`get_post()` takes `$output` as its 2nd param. The `@return` annotation should reflect the function's ability to return an array.

See #30799.

Built from https://develop.svn.wordpress.org/trunk@31132


git-svn-id: http://core.svn.wordpress.org/trunk@31113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-01-10 21:38:23 +00:00
parent 56d6682461
commit 806b2e9bae
2 changed files with 3 additions and 2 deletions

View File

@ -416,7 +416,8 @@ function get_extended( $post ) {
* Default OBJECT.
* @param string $filter Optional. Type of filter to apply. Accepts 'raw', 'edit', 'db',
* or 'display'. Default 'raw'.
* @return WP_Post|null WP_Post on success or null on failure.
* @return WP_Post|array|null Type corresponding to $output on success or null on failure.
* When $output is OBJECT, a `WP_Post` instance is returned.
*/
function get_post( $post = null, $output = OBJECT, $filter = 'raw' ) {
if ( empty( $post ) && isset( $GLOBALS['post'] ) )

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31131';
$wp_version = '4.2-alpha-31132';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.