mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-20 15:21:28 +01:00
Fix context for get_post() in the deprecated wp_get_single_post(). fixes #24602.
git-svn-id: http://core.svn.wordpress.org/trunk@24436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
06f96735c1
commit
0cf7acf4a9
@ -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 ) {
|
function wp_get_single_post( $postid = 0, $mode = OBJECT ) {
|
||||||
_deprecated_function( __FUNCTION__, '3.5', 'get_post()' );
|
_deprecated_function( __FUNCTION__, '3.5', 'get_post()' );
|
||||||
return get_post( $postid, $mode, 'edit' );
|
return get_post( $postid, $mode );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user