From 8739f3adf7eab9d17b5c93fc9b1702cc103a66e6 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 3 Jan 2018 16:00:20 +0100 Subject: [PATCH] Remove superfluous parentheses from include statements. Resolves #4252 --- bin/get-server-blocks.php | 14 +++++++------- gutenberg.php | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/get-server-blocks.php b/bin/get-server-blocks.php index e454c577de2c56..0d3f068aa2d157 100755 --- a/bin/get-server-blocks.php +++ b/bin/get-server-blocks.php @@ -17,17 +17,17 @@ define( 'WPINC', 'wp-includes' ); define( 'WP_SETUP_CONFIG', true ); define( 'WP_USE_THEMES', false ); -require_once( ABSPATH . WPINC . '/load.php' ); -require_once( ABSPATH . WPINC . '/default-constants.php' ); +require_once ABSPATH . WPINC . '/load.php'; +require_once ABSPATH . WPINC . '/default-constants.php'; wp_fix_server_vars(); wp_initial_constants(); -require_once( ABSPATH . WPINC . '/functions.php' ); +require_once ABSPATH . WPINC . '/functions.php'; wp_load_translations_early(); wp_set_lang_dir(); -require_once( dirname( dirname( __FILE__ ) ) . '/lib/blocks.php' ); -require_once( dirname( dirname( __FILE__ ) ) . '/lib/class-wp-block-type-registry.php' ); -require_once( dirname( dirname( __FILE__ ) ) . '/lib/class-wp-block-type.php' ); -require_once( dirname( dirname( __FILE__ ) ) . '/lib/client-assets.php' ); +require_once dirname( dirname( __FILE__ ) ) . '/lib/blocks.php'; +require_once dirname( dirname( __FILE__ ) ) . '/lib/class-wp-block-type-registry.php'; +require_once dirname( dirname( __FILE__ ) ) . '/lib/class-wp-block-type.php'; +require_once dirname( dirname( __FILE__ ) ) . '/lib/client-assets.php'; // Register server-side code for individual blocks. foreach ( glob( dirname( dirname( __FILE__ ) ) . '/blocks/library/*/index.php' ) as $block_logic ) { diff --git a/gutenberg.php b/gutenberg.php index 61880e55a67ac0..9138dbc67c95da 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -115,7 +115,7 @@ function gutenberg_pre_init() { } // Get unmodified $wp_version. - include( ABSPATH . WPINC . '/version.php' ); + include ABSPATH . WPINC . '/version.php'; // Strip '-src' from the version string. Messes up version_compare(). $version = str_replace( '-src', '', $wp_version ); @@ -161,7 +161,7 @@ function gutenberg_init( $return, $post ) { add_filter( 'screen_options_show_screen', '__return_false' ); add_filter( 'admin_body_class', 'gutenberg_add_admin_body_class' ); - require_once( ABSPATH . 'wp-admin/admin-header.php' ); + require_once ABSPATH . 'wp-admin/admin-header.php'; the_gutenberg_project(); return true; @@ -247,7 +247,7 @@ function gutenberg_intercept_edit_post() { } if ( gutenberg_init( false, $post ) ) { - include( ABSPATH . 'wp-admin/admin-footer.php' ); + include ABSPATH . 'wp-admin/admin-footer.php'; exit; } } @@ -311,7 +311,7 @@ function gutenberg_intercept_post_new() { $post_ID = $post->ID; if ( gutenberg_init( false, $post ) ) { - include( ABSPATH . 'wp-admin/admin-footer.php' ); + include ABSPATH . 'wp-admin/admin-footer.php'; exit; } }