Fix context for get_post() in the deprecated wp_get_single_post(). fixes #24602.

git-svn-id: https://develop.svn.wordpress.org/trunk@24436 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-06-19 07:58:28 +00:00
parent 8af26bb790
commit 18a1feccaa
1 changed files with 1 additions and 1 deletions

View File

@ -3284,7 +3284,7 @@ function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $de
*/
function wp_get_single_post( $postid = 0, $mode = OBJECT ) {
_deprecated_function( __FUNCTION__, '3.5', 'get_post()' );
return get_post( $postid, $mode, 'edit' );
return get_post( $postid, $mode );
}
/**