`WP_Customize_Setting::is_current_blog_previewed()` should only return `false`, not `false` or `void`. The one invocation of the method only loosely checks the return value.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32732 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-06-12 17:28:46 +00:00
parent 611261c223
commit 6c8e2e1ab0
1 changed files with 2 additions and 2 deletions

View File

@ -129,11 +129,11 @@ class WP_Customize_Setting {
* @since 4.2.0
* @access public
*
* @return bool|void If preview() has been called.
* @return bool If preview() has been called.
*/
public function is_current_blog_previewed() {
if ( ! isset( $this->_previewed_blog_id ) ) {
return;
return false;
}
return ( get_current_blog_id() === $this->_previewed_blog_id );
}