`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:
Scott Taylor 2014-05-18 20:52:15 +00:00
parent 112ca4e055
commit b9afafffe3
11 changed files with 19 additions and 19 deletions

View File

@ -38,7 +38,7 @@ if ( !current_user_can('upload_files') )
header('Content-Type: text/html; charset=' . get_option('blog_charset'));
if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
include ABSPATH . 'wp-admin/includes/ajax-actions.php';
include( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
send_nosniff_header();
nocache_headers();

View File

@ -1393,7 +1393,7 @@ class Core_Upgrader extends WP_Upgrader {
function upgrade( $current, $args = array() ) {
global $wp_filesystem;
include ABSPATH . WPINC . '/version.php'; // $wp_version;
include( ABSPATH . WPINC . '/version.php' ); // $wp_version;
$start_time = time();
@ -1537,7 +1537,7 @@ class Core_Upgrader extends WP_Upgrader {
// Determines if this WordPress Core version should update to $offered_ver or not
static function should_update_to_version( $offered_ver /* x.y.z */ ) {
include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z
$current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y
$new_branch = implode( '.', array_slice( preg_split( '/[.-]/', $offered_ver ), 0, 2 ) ); // x.y

View File

@ -1070,7 +1070,7 @@ function wp_update_core($current, $feedback = '') {
if ( !empty($feedback) )
add_filter('update_feedback', $feedback);
include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
$upgrader = new Core_Upgrader();
return $upgrader->upgrade($current);
@ -1093,7 +1093,7 @@ function wp_update_plugin($plugin, $feedback = '') {
if ( !empty($feedback) )
add_filter('update_feedback', $feedback);
include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
$upgrader = new Plugin_Upgrader();
return $upgrader->upgrade($plugin);
}
@ -1115,7 +1115,7 @@ function wp_update_theme($theme, $feedback = '') {
if ( !empty($feedback) )
add_filter('update_feedback', $feedback);
include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
$upgrader = new Theme_Upgrader();
return $upgrader->upgrade($theme);
}

View File

@ -119,7 +119,7 @@ function wp_import_handle_upload() {
* @return array Importers with metadata for each.
*/
function wp_get_popular_importers() {
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
$locale = get_locale();
$popular_importers = get_site_transient( 'popular_importers_' . $locale );

View File

@ -938,7 +938,7 @@ function uninstall_plugin($plugin) {
define('WP_UNINSTALL_PLUGIN', $file);
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . dirname( $file ) );
include WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php';
include( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' );
return true;
}
@ -950,7 +950,7 @@ function uninstall_plugin($plugin) {
unset($uninstallable_plugins);
wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
include WP_PLUGIN_DIR . '/' . $file;
include( WP_PLUGIN_DIR . '/' . $file );
add_action( 'uninstall_' . $file, $callable );

View File

@ -398,7 +398,7 @@ function wp_theme_update_row( $theme_key, $theme ) {
}
function maintenance_nag() {
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
global $upgrading;
$nag = isset( $upgrading );
if ( ! $nag ) {

View File

@ -153,7 +153,7 @@ function network_step1( $errors = false ) {
if ( defined('DO_NOT_UPGRADE_GLOBAL_TABLES') ) {
echo '<div class="error"><p><strong>' . __('ERROR:') . '</strong> ' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.' ) . '</p></div>';
echo '</div>';
include ( ABSPATH . 'wp-admin/admin-footer.php' );
include( ABSPATH . 'wp-admin/admin-footer.php' );
die();
}

View File

@ -187,7 +187,7 @@ $profileuser = get_user_to_edit($user_id);
if ( !current_user_can('edit_user', $user_id) )
wp_die(__('You do not have permission to edit this user.'));
include (ABSPATH . 'wp-admin/admin-header.php');
include(ABSPATH . 'wp-admin/admin-header.php');
?>
<?php if ( !IS_PROFILE_PAGE && is_super_admin( $profileuser->ID ) && current_user_can( 'manage_network_options' ) ) { ?>

View File

@ -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' ) ) {

View File

@ -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' ) );

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' );