Restore blog_option_* filter. see #21459
git-svn-id: https://develop.svn.wordpress.org/trunk@21595 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4a797c0b62
commit
e49b0dd8ea
|
@ -338,10 +338,10 @@ function get_blog_option( $id, $option, $default = false ) {
|
||||||
return get_option( $option, $default );
|
return get_option( $option, $default );
|
||||||
|
|
||||||
switch_to_blog( $id );
|
switch_to_blog( $id );
|
||||||
$option = get_option( $option, $default );
|
$value = get_option( $option, $default );
|
||||||
restore_current_blog();
|
restore_current_blog();
|
||||||
|
|
||||||
return $option;
|
return apply_filters( 'blog_option_' . $option, $value, $id );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue