get_post()
takes $output
as its 2nd param. The @return
annotation should reflect the function's ability to return an array.
See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31132 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
358b309da9
commit
a8cf928200
@ -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'] ) )
|
||||
|
Loading…
Reference in New Issue
Block a user