From ac1701b7cce4dff378cf010c87e91dfcd8bd3344 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 2 Mar 2014 04:41:15 +0000 Subject: [PATCH] Fix the return description for `switch_to_blog()` to reflect that it always returns true. Props jeremyfelt. Fixes #25328. Built from https://develop.svn.wordpress.org/trunk@27347 git-svn-id: http://core.svn.wordpress.org/trunk@27199 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-blogs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php index 8d05f10c69..16a491818a 100644 --- a/wp-includes/ms-blogs.php +++ b/wp-includes/ms-blogs.php @@ -569,7 +569,7 @@ function update_blog_option( $id, $option, $value, $deprecated = null ) { * * @param int $new_blog The id of the blog you want to switch to. Default: current blog * @param bool $deprecated Deprecated argument - * @return bool True on success, false if the validation failed + * @return bool Always returns True. */ function switch_to_blog( $new_blog, $deprecated = null ) { global $wpdb, $wp_roles;