Make WordPress Core


Ignore:
Timestamp:
05/29/2015 03:42:40 PM (9 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/functions.php

    r32595 r32650  
    16221622 */
    16231623function get_temp_dir() {
    1624     static $temp;
     1624    static $temp = '';
    16251625    if ( defined('WP_TEMP_DIR') )
    16261626        return trailingslashit(WP_TEMP_DIR);
     
    44844484 */
    44854485function wp_allowed_protocols() {
    4486     static $protocols;
     4486    static $protocols = array();
    44874487
    44884488    if ( empty( $protocols ) ) {
Note: See TracChangeset for help on using the changeset viewer.