Make WordPress Core

Ticket #40459: 40459.patch

File 40459.patch, 877 bytes (added by bor0, 8 years ago)
  • wp-includes/class-wp-network.php

     
    162162                                return (int) $this->blog_id;
    163163                }
    164164
    165                 return null;
     165                return isset( $this->$key ) ? $this->$key : null;
    166166        }
    167167
    168168        /**
     
    184184                                return true;
    185185                }
    186186
    187                 return false;
     187                return isset( $this->$key );
    188188        }
    189189
    190190        /**
  • wp-includes/class-wp-site.php

     
    251251                                }
    252252                }
    253253
    254                 return null;
     254                return isset( $this->$key ) ? $this->$key : null;
    255255        }
    256256
    257257        /**
     
    290290                                }
    291291                }
    292292
    293                 return false;
     293                return isset( $this->$key );
    294294        }
    295295
    296296        /**