mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Improve description for get_blog_post().
Props stevenlinx. Fixes #50655. git-svn-id: https://develop.svn.wordpress.org/trunk@48467 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -132,13 +132,16 @@ function get_blog_count( $network_id = null ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a blog post from any site on the network.
|
||||
* Gets a blog post from any site on the network.
|
||||
*
|
||||
* This function is similar to get_post(), except that it can retrieve a post
|
||||
* from any site on the network, not just the current site.
|
||||
*
|
||||
* @since MU (3.0.0)
|
||||
*
|
||||
* @param int $blog_id ID of the blog.
|
||||
* @param int $post_id ID of the post being looked for.
|
||||
* @return WP_Post|null WP_Post on success or null on failure
|
||||
* @return WP_Post|null WP_Post object on success, null on failure
|
||||
*/
|
||||
function get_blog_post( $blog_id, $post_id ) {
|
||||
switch_to_blog( $blog_id );
|
||||
|
||||
Reference in New Issue
Block a user