Make WordPress Core


Ignore:
Timestamp:
05/29/2015 03:42:40 PM (10 years ago)
Author:
wonderboymusic
Message:

Add @static* annotations where they are missing.
Initialize all static vars that are not, most to null.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/http.php

    r32599 r32650  
    2323 */
    2424function _wp_http_get_object() {
    25     static $http;
    26 
    27     if ( is_null($http) )
     25    static $http = null;
     26
     27    if ( is_null( $http ) ) {
    2828        $http = new WP_Http();
    29 
     29    }
    3030    return $http;
    3131}
Note: See TracChangeset for help on using the changeset viewer.