Make WordPress Core


Ignore:
Timestamp:
05/18/2014 08:51:44 PM (11 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/plugin.php

    r28256 r28479  
    939939        define('WP_UNINSTALL_PLUGIN', $file);
    940940        wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . dirname( $file ) );
    941         include WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php';
     941        include( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' );
    942942
    943943        return true;
     
    951951
    952952        wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
    953         include WP_PLUGIN_DIR . '/' . $file;
     953        include( WP_PLUGIN_DIR . '/' . $file );
    954954
    955955        add_action( 'uninstall_' . $file, $callable );
Note: See TracChangeset for help on using the changeset viewer.