createApplication(\Magento\Framework\App\Http::class); * $bootstrap->run($app); * -------------------------------------------- * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ require_once('../store-config.php'); // Include WordPress Loader for Synching // @@ Vital if (strpos($_SERVER['REQUEST_URI'], STOREADMIN) === false) { $wp_load_file = '../wp-load.php'; if (file_exists($wp_load_file)) { define('WP_USE_THEMES', false); try { require_once($wp_load_file); } catch (\Exception $e) { // Do nothing } } } if (isset($_SERVER['HTTP_CLIENT_IP']) && $_SERVER['HTTP_CLIENT_IP']) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CLIENT_IP']; } else if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR']) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; } try { require __DIR__ . '/app/bootstrap.php'; } catch (\Exception $e) { echo <<

Autoload error

{$e->getMessage()}

HTML; exit(1); } $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER); /** @var \Magento\Framework\App\Http $app */ $app = $bootstrap->createApplication(\Magento\Framework\App\Http::class); $bootstrap->run($app);