mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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:
@@ -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