mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@32732 git-svn-id: http://core.svn.wordpress.org/trunk@32703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3b1e434c3b
commit
740b92853d
@ -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 );
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32731';
|
$wp_version = '4.3-alpha-32732';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user