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:
parent
611261c223
commit
6c8e2e1ab0
@ -129,11 +129,11 @@ class WP_Customize_Setting {
|
|||||||
* @since 4.2.0
|
* @since 4.2.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @return bool|void If preview() has been called.
|
* @return bool If preview() has been called.
|
||||||
*/
|
*/
|
||||||
public function is_current_blog_previewed() {
|
public function is_current_blog_previewed() {
|
||||||
if ( ! isset( $this->_previewed_blog_id ) ) {
|
if ( ! isset( $this->_previewed_blog_id ) ) {
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
return ( get_current_blog_id() === $this->_previewed_blog_id );
|
return ( get_current_blog_id() === $this->_previewed_blog_id );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user