WordPress.org

Make WordPress Core

Changeset 28479


Ignore:
Timestamp:
05/18/2014 08:51:44 PM (7 years ago)
Author:
wonderboymusic
Message:

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

See #27881.

Location:
trunk/src
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r28478 r28479  
    3939
    4040if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
    41     include ABSPATH . 'wp-admin/includes/ajax-actions.php';
     41    include( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
    4242
    4343    send_nosniff_header();
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r28468 r28479  
    13941394        global $wp_filesystem;
    13951395
    1396         include ABSPATH . WPINC . '/version.php'; // $wp_version;
     1396        include( ABSPATH . WPINC . '/version.php' ); // $wp_version;
    13971397
    13981398        $start_time = time();
     
    15381538    // Determines if this WordPress Core version should update to $offered_ver or not
    15391539    static function should_update_to_version( $offered_ver /* x.y.z */ ) {
    1540         include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
     1540        include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z
    15411541
    15421542        $current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version  ), 0, 2 ) ); // x.y
  • trunk/src/wp-admin/includes/deprecated.php

    r27261 r28479  
    10711071        add_filter('update_feedback', $feedback);
    10721072
    1073     include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
     1073    include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    10741074    $upgrader = new Core_Upgrader();
    10751075    return $upgrader->upgrade($current);
     
    10941094        add_filter('update_feedback', $feedback);
    10951095
    1096     include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
     1096    include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    10971097    $upgrader = new Plugin_Upgrader();
    10981098    return $upgrader->upgrade($plugin);
     
    11161116        add_filter('update_feedback', $feedback);
    11171117
    1118     include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
     1118    include( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
    11191119    $upgrader = new Theme_Upgrader();
    11201120    return $upgrader->upgrade($theme);
  • trunk/src/wp-admin/includes/import.php

    r27374 r28479  
    120120 */
    121121function wp_get_popular_importers() {
    122     include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
     122    include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
    123123
    124124    $locale = get_locale();
  • 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 );
  • trunk/src/wp-admin/includes/update.php

    r28304 r28479  
    399399
    400400function maintenance_nag() {
    401     include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
     401    include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
    402402    global $upgrading;
    403403    $nag = isset( $upgrading );
  • trunk/src/wp-admin/network.php

    r27604 r28479  
    154154        echo '<div class="error"><p><strong>' . __('ERROR:') . '</strong> ' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.' ) . '</p></div>';
    155155        echo '</div>';
    156         include ( ABSPATH . 'wp-admin/admin-footer.php' );
     156        include( ABSPATH . 'wp-admin/admin-footer.php' );
    157157        die();
    158158    }
  • trunk/src/wp-admin/user-edit.php

    r27743 r28479  
    188188    wp_die(__('You do not have permission to edit this user.'));
    189189
    190 include (ABSPATH . 'wp-admin/admin-header.php');
     190include(ABSPATH . 'wp-admin/admin-header.php');
    191191?>
    192192
  • trunk/src/wp-includes/class-simplepie.php

    r22366 r28479  
    2727
    2828    $file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php';
    29     include $file;
     29    include( $file );
    3030}
    3131
  • trunk/src/wp-includes/script-loader.php

    r28336 r28479  
    4949 */
    5050function wp_default_scripts( &$scripts ) {
    51     include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
     51    include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
    5252
    5353    $develop_src = false !== strpos( $wp_version, '-src' );
     
    558558 */
    559559function wp_default_styles( &$styles ) {
    560     include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
     560    include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
    561561
    562562    if ( ! defined( 'SCRIPT_DEBUG' ) )
  • trunk/src/wp-includes/update.php

    r28145 r28479  
    2626
    2727    global $wpdb, $wp_local_package;
    28     include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
     28    include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
    2929    $php_version = phpversion();
    3030
     
    184184 */
    185185function wp_update_plugins( $extra_stats = array() ) {
    186     include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
     186    include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
    187187
    188188    if ( defined('WP_INSTALLING') )
     
    323323 */
    324324function wp_update_themes( $extra_stats = array() ) {
    325     include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
     325    include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
    326326
    327327    if ( defined( 'WP_INSTALLING' ) )
     
    551551
    552552function _maybe_update_core() {
    553     include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
     553    include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
    554554
    555555    $current = get_site_transient( 'update_core' );
Note: See TracChangeset for help on using the changeset viewer.