From cb01fda9e4b8c374244382d932dca5fda1d6ffb4 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 19 Jun 2013 08:00:13 +0000 Subject: [PATCH] Fix context for get_post() in the deprecated wp_get_single_post(). fixes #24602. Merges [24436] to the 3.5 branch. git-svn-id: http://core.svn.wordpress.org/branches/3.5@24437 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/deprecated.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index c8fdf4ff2f..655316a0a9 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -3298,7 +3298,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 ); } /**