WordPress.org

Make WordPress Core

Changeset 32732


Ignore:
Timestamp:
06/12/2015 05:28:46 PM (6 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-setting.php

    r32568 r32732  
    130130     * @access public
    131131     *
    132      * @return bool|void If preview() has been called.
     132     * @return bool If preview() has been called.
    133133     */
    134134    public function is_current_blog_previewed() {
    135135        if ( ! isset( $this->_previewed_blog_id ) ) {
    136             return;
     136            return false;
    137137        }
    138138        return ( get_current_blog_id() === $this->_previewed_blog_id );
Note: See TracChangeset for help on using the changeset viewer.