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/plugin.php

    r32615 r32650  
    690690
    691691    // Normalize, but store as static to avoid recalculation of a constant value
    692     static $wp_plugin_path, $wpmu_plugin_path;
     692    static $wp_plugin_path = null, $wpmu_plugin_path = null;
    693693    if ( ! isset( $wp_plugin_path ) ) {
    694694        $wp_plugin_path   = wp_normalize_path( WP_PLUGIN_DIR   );
Note: See TracChangeset for help on using the changeset viewer.