Make WordPress Core


Ignore:
Timestamp:
05/18/2014 08:51:44 PM (10 years ago)
Author:
wonderboymusic
Message:

hackificator complains if you call include 'file.php' without the parens, needs to be include( 'file.php' )

See #27881.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r28468 r28479  
    13941394        global $wp_filesystem;
    13951395
    1396         include ABSPATH . WPINC . '/version.php'; // $wp_version;
     1396        include( ABSPATH . WPINC . '/version.php' ); // $wp_version;
    13971397
    13981398        $start_time = time();
     
    15381538    // Determines if this WordPress Core version should update to $offered_ver or not
    15391539    static function should_update_to_version( $offered_ver /* x.y.z */ ) {
    1540         include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
     1540        include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z
    15411541
    15421542        $current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version  ), 0, 2 ) ); // x.y
Note: See TracChangeset for help on using the changeset viewer.