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

    r32643 r32650  
    137137 * @since 3.8.0
    138138 *
     139 * @staticvar object $themes_update
     140 *
    139141 * @param WP_Theme $theme WP_Theme object.
    140142 * @return false|string HTML for the update link, or false if invalid info was passed.
    141143 */
    142144function get_theme_update_available( $theme ) {
    143     static $themes_update;
     145    static $themes_update = null;
    144146
    145147    if ( !current_user_can('update_themes' ) )
Note: See TracChangeset for help on using the changeset viewer.