hackificator complains if you call include 'file.php' without the parens, needs to be include( 'file.php' )
See #27881. Built from https://develop.svn.wordpress.org/trunk@28479 git-svn-id: http://core.svn.wordpress.org/trunk@28306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -26,7 +26,7 @@ function wp_simplepie_autoload( $class ) {
|
||||
return;
|
||||
|
||||
$file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php';
|
||||
include $file;
|
||||
include( $file );
|
||||
}
|
||||
|
||||
if ( function_exists( 'spl_autoload_register' ) ) {
|
||||
|
||||
@@ -48,7 +48,7 @@ require( ABSPATH . WPINC . '/functions.wp-styles.php' );
|
||||
* @param object $scripts WP_Scripts object.
|
||||
*/
|
||||
function wp_default_scripts( &$scripts ) {
|
||||
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
|
||||
include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
|
||||
|
||||
$develop_src = false !== strpos( $wp_version, '-src' );
|
||||
|
||||
@@ -557,7 +557,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
* @param object $styles
|
||||
*/
|
||||
function wp_default_styles( &$styles ) {
|
||||
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
|
||||
include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
|
||||
|
||||
if ( ! defined( 'SCRIPT_DEBUG' ) )
|
||||
define( 'SCRIPT_DEBUG', false !== strpos( $wp_version, '-src' ) );
|
||||
|
||||
@@ -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' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user