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

    r32632 r32650  
    411411function search_theme_directories( $force = false ) {
    412412    global $wp_theme_directories;
     413    static $found_themes = null;
     414
    413415    if ( empty( $wp_theme_directories ) )
    414416        return false;
    415417
    416     static $found_themes;
    417418    if ( ! $force && isset( $found_themes ) )
    418419        return $found_themes;
     
    11061107 */
    11071108function _get_random_header_data() {
    1108     static $_wp_random_header;
     1109    static $_wp_random_header = null;
    11091110
    11101111    if ( empty( $_wp_random_header ) ) {
Note: See TracChangeset for help on using the changeset viewer.