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

See #27881.


git-svn-id: https://develop.svn.wordpress.org/trunk@28479 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-05-18 20:51:44 +00:00
parent af0851cc0d
commit 1b4e4e665a
11 changed files with 19 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) {
return;
global $wpdb, $wp_local_package;
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
$php_version = phpversion();
$current = get_site_transient( 'update_core' );
@@ -183,7 +183,7 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) {
* @return mixed Returns null if update is unsupported. Returns false if check is too soon.
*/
function wp_update_plugins( $extra_stats = array() ) {
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
if ( defined('WP_INSTALLING') )
return false;
@@ -322,7 +322,7 @@ function wp_update_plugins( $extra_stats = array() ) {
* @return mixed Returns null if update is unsupported. Returns false if check is too soon.
*/
function wp_update_themes( $extra_stats = array() ) {
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
if ( defined( 'WP_INSTALLING' ) )
return false;
@@ -550,7 +550,7 @@ function wp_get_update_data() {
}
function _maybe_update_core() {
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
$current = get_site_transient( 'update_core' );