Fix phpdoc for switch_to_blog() and restore_current_blog(). Props SergeyBiryukov. fixes #21459
git-svn-id: https://develop.svn.wordpress.org/trunk@21523 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a77d7f0867
commit
67fb26f7b2
|
@ -446,8 +446,8 @@ function update_blog_option( $id, $option, $value, $deprecated = null ) {
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @param int $new_blog The id of the blog you want to switch to. Default: current blog
|
* @param int $new_blog The id of the blog you want to switch to. Default: current blog
|
||||||
* @param bool $deprecated Depecreated argument
|
* @param bool $deprecated Deprecated argument
|
||||||
* @return bool True on success, False if the validation failed
|
* @return bool True on success, false if the validation failed
|
||||||
*/
|
*/
|
||||||
function switch_to_blog( $new_blog, $deprecated = null ) {
|
function switch_to_blog( $new_blog, $deprecated = null ) {
|
||||||
global $wpdb, $wp_roles;
|
global $wpdb, $wp_roles;
|
||||||
|
@ -510,7 +510,7 @@ function switch_to_blog( $new_blog, $deprecated = null ) {
|
||||||
* @see switch_to_blog()
|
* @see switch_to_blog()
|
||||||
* @since MU
|
* @since MU
|
||||||
*
|
*
|
||||||
* @return bool True on success, False if we're already on the current blog
|
* @return bool True on success, false if we're already on the current blog
|
||||||
*/
|
*/
|
||||||
function restore_current_blog() {
|
function restore_current_blog() {
|
||||||
global $wpdb, $wp_roles;
|
global $wpdb, $wp_roles;
|
||||||
|
|
Loading…
Reference in New Issue