diff --git a/app/bootstrap.php b/app/bootstrap.php
index f51265aee618e..23ab8e404587a 100644
--- a/app/bootstrap.php
+++ b/app/bootstrap.php
@@ -31,8 +31,15 @@
require_once __DIR__ . '/autoload.php';
require_once BP . '/app/functions.php';
-if (!empty($_SERVER['MAGE_PROFILER'])) {
- \Magento\Framework\Profiler::applyConfig($_SERVER['MAGE_PROFILER'], BP, !empty($_REQUEST['isAjax']));
+if (!empty($_SERVER['MAGE_PROFILER'])
+ && isset($_SERVER['HTTP_ACCEPT'])
+ && strpos($_SERVER['HTTP_ACCEPT'], 'text/html') !== false
+) {
+ \Magento\Framework\Profiler::applyConfig(
+ $_SERVER['MAGE_PROFILER'],
+ BP,
+ !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest'
+ );
}
if (ini_get('date.timezone') == '') {
date_default_timezone_set('UTC');
diff --git a/app/code/Magento/Catalog/etc/product_options_merged.xsd b/app/code/Magento/Catalog/etc/product_options_merged.xsd
index 68268f1d9cd1f..5cf7fcf2fce99 100644
--- a/app/code/Magento/Catalog/etc/product_options_merged.xsd
+++ b/app/code/Magento/Catalog/etc/product_options_merged.xsd
@@ -6,7 +6,7 @@
*/
-->
-
+
diff --git a/app/code/Magento/Catalog/etc/product_types.xsd b/app/code/Magento/Catalog/etc/product_types.xsd
index 8dc3de773c169..a607244d5e976 100644
--- a/app/code/Magento/Catalog/etc/product_types.xsd
+++ b/app/code/Magento/Catalog/etc/product_types.xsd
@@ -6,7 +6,7 @@
*/
-->
-
+
diff --git a/app/code/Magento/Catalog/etc/product_types_merged.xsd b/app/code/Magento/Catalog/etc/product_types_merged.xsd
index 3595808492434..3098817cea101 100644
--- a/app/code/Magento/Catalog/etc/product_types_merged.xsd
+++ b/app/code/Magento/Catalog/etc/product_types_merged.xsd
@@ -7,7 +7,7 @@
-->
-
+
diff --git a/app/code/Magento/Catalog/view/adminhtml/ui_component/product_listing.xml b/app/code/Magento/Catalog/view/adminhtml/ui_component/product_listing.xml
index e1bdb4dbcb9be..4e021bbafe02b 100644
--- a/app/code/Magento/Catalog/view/adminhtml/ui_component/product_listing.xml
+++ b/app/code/Magento/Catalog/view/adminhtml/ui_component/product_listing.xml
@@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
-
+
-
- product_listing.product_listing_data_source
diff --git a/app/code/Magento/CatalogInventory/view/adminhtml/ui_component/product_listing.xml b/app/code/Magento/CatalogInventory/view/adminhtml/ui_component/product_listing.xml
index a4f0f8c41ec97..944e05f55a651 100644
--- a/app/code/Magento/CatalogInventory/view/adminhtml/ui_component/product_listing.xml
+++ b/app/code/Magento/CatalogInventory/view/adminhtml/ui_component/product_listing.xml
@@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
-
+
diff --git a/app/code/Magento/Cms/view/adminhtml/ui_component/cms_block_listing.xml b/app/code/Magento/Cms/view/adminhtml/ui_component/cms_block_listing.xml
index 6775549e39d49..d986cbfef3be1 100644
--- a/app/code/Magento/Cms/view/adminhtml/ui_component/cms_block_listing.xml
+++ b/app/code/Magento/Cms/view/adminhtml/ui_component/cms_block_listing.xml
@@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
-
+
-
- cms_block_listing.cms_block_listing_data_source
diff --git a/app/code/Magento/Cms/view/adminhtml/ui_component/cms_page_listing.xml b/app/code/Magento/Cms/view/adminhtml/ui_component/cms_page_listing.xml
index 27cc3ddc2e019..551a0709d2ea7 100644
--- a/app/code/Magento/Cms/view/adminhtml/ui_component/cms_page_listing.xml
+++ b/app/code/Magento/Cms/view/adminhtml/ui_component/cms_page_listing.xml
@@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
-
+
-
- cms_page_listing.cms_page_listing_data_source
diff --git a/app/code/Magento/Config/Observer/Config/Backend/Admin/AfterCustomUrlChangedObserver.php b/app/code/Magento/Config/Observer/Config/Backend/Admin/AfterCustomUrlChangedObserver.php
index 36c952ae45722..816984b860b5a 100644
--- a/app/code/Magento/Config/Observer/Config/Backend/Admin/AfterCustomUrlChangedObserver.php
+++ b/app/code/Magento/Config/Observer/Config/Backend/Admin/AfterCustomUrlChangedObserver.php
@@ -33,38 +33,31 @@ class AfterCustomUrlChangedObserver implements ObserverInterface
*/
protected $_response;
- /**
- * @var \Magento\Store\Model\StoreManagerInterface
- */
- protected $_storeManager;
-
/**
* @param \Magento\Backend\Helper\Data $backendData
* @param \Magento\Framework\Registry $coreRegistry
* @param \Magento\Backend\Model\Auth\Session $authSession
* @param \Magento\Framework\App\ResponseInterface $response
- * @param \Magento\Store\Model\StoreManagerInterface $storeManager
*/
public function __construct(
\Magento\Backend\Helper\Data $backendData,
\Magento\Framework\Registry $coreRegistry,
\Magento\Backend\Model\Auth\Session $authSession,
- \Magento\Framework\App\ResponseInterface $response,
- \Magento\Store\Model\StoreManagerInterface $storeManager
+ \Magento\Framework\App\ResponseInterface $response
) {
$this->_backendData = $backendData;
$this->_coreRegistry = $coreRegistry;
$this->_authSession = $authSession;
$this->_response = $response;
- $this->_storeManager = $storeManager;
}
/**
- * Log out user and redirect him to new admin custom url
+ * Log out user and redirect to new admin custom url
*
* @param \Magento\Framework\Event\Observer $observer
* @return void
* @SuppressWarnings(PHPMD.ExitExpression)
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function execute(\Magento\Framework\Event\Observer $observer)
{
@@ -73,10 +66,8 @@ public function execute(\Magento\Framework\Event\Observer $observer)
}
$this->_authSession->destroy();
-
- $route = $this->_backendData->getAreaFrontName();
-
- $this->_response->setRedirect($this->_storeManager->getStore()->getBaseUrl() . $route)->sendResponse();
+ $adminUrl = $this->_backendData->getHomePageUrl();
+ $this->_response->setRedirect($adminUrl)->sendResponse();
exit(0);
}
}
diff --git a/app/code/Magento/Config/etc/system_include.xsd b/app/code/Magento/Config/etc/system_include.xsd
index 2c39b82927d2b..4b36237a673ce 100644
--- a/app/code/Magento/Config/etc/system_include.xsd
+++ b/app/code/Magento/Config/etc/system_include.xsd
@@ -6,7 +6,7 @@
*/
-->
-
+
diff --git a/app/code/Magento/ConfigurableProduct/view/adminhtml/ui_component/configurable_associated_product_listing.xml b/app/code/Magento/ConfigurableProduct/view/adminhtml/ui_component/configurable_associated_product_listing.xml
index 7fd14ff394f9b..19aa14654252d 100644
--- a/app/code/Magento/ConfigurableProduct/view/adminhtml/ui_component/configurable_associated_product_listing.xml
+++ b/app/code/Magento/ConfigurableProduct/view/adminhtml/ui_component/configurable_associated_product_listing.xml
@@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
-
+
-
- configurable_associated_product_listing.data_source
diff --git a/app/code/Magento/ConfigurableProduct/view/adminhtml/ui_component/product_attributes_listing.xml b/app/code/Magento/ConfigurableProduct/view/adminhtml/ui_component/product_attributes_listing.xml
index edf1f8cae1c9e..befdbacd70599 100644
--- a/app/code/Magento/ConfigurableProduct/view/adminhtml/ui_component/product_attributes_listing.xml
+++ b/app/code/Magento/ConfigurableProduct/view/adminhtml/ui_component/product_attributes_listing.xml
@@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
-
+
-
- product_attributes_listing.product_attributes_listing_data_source
diff --git a/app/code/Magento/Customer/view/adminhtml/ui_component/customer_listing.xml b/app/code/Magento/Customer/view/adminhtml/ui_component/customer_listing.xml
index 5c01b2cb6c7b8..e1a9e9aa7ec2f 100644
--- a/app/code/Magento/Customer/view/adminhtml/ui_component/customer_listing.xml
+++ b/app/code/Magento/Customer/view/adminhtml/ui_component/customer_listing.xml
@@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
-
+
-
- customer_listing.customer_listing_data_source
diff --git a/app/code/Magento/Customer/view/adminhtml/ui_component/customer_online_grid.xml b/app/code/Magento/Customer/view/adminhtml/ui_component/customer_online_grid.xml
index c864f2ac240f4..7a1e66f70ba89 100644
--- a/app/code/Magento/Customer/view/adminhtml/ui_component/customer_online_grid.xml
+++ b/app/code/Magento/Customer/view/adminhtml/ui_component/customer_online_grid.xml
@@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
-
+
-
- customer_online_grid.customer_online_grid_data_source
diff --git a/app/code/Magento/Customer/view/base/ui_component/customer_form.xml b/app/code/Magento/Customer/view/base/ui_component/customer_form.xml
index 0fa2ab59bcc75..d03507aba2780 100644
--- a/app/code/Magento/Customer/view/base/ui_component/customer_form.xml
+++ b/app/code/Magento/Customer/view/base/ui_component/customer_form.xml
@@ -5,7 +5,7 @@
* See COPYING.txt for license details.
*/
-->
-
- The best way to resolve this is to allow write permissions for the following Magento directories. The exact fix depends on your server, your host, and other system variables.
+ The best way to resolve this is to allow write permissions for the following Magento
+ directories and their sub-directories. The exact fix depends on your server, your host,
+ and other system variables.
Our File Permission Help can get you started.
diff --git a/setup/view/magento/setup/web-configuration.phtml b/setup/view/magento/setup/web-configuration.phtml
index 5101643a6defc..c8f7d0f1b5e80 100644
--- a/setup/view/magento/setup/web-configuration.phtml
+++ b/setup/view/magento/setup/web-configuration.phtml
@@ -61,7 +61,7 @@ $hints = [
+