Skip to content

Commit 415a139

Browse files
committed
Merge pull request #30 from magento-extensibility/MAGETWO-25343-remove-theme-version
[Extensibility] MAGETWO-25343: Declaration of Components: XML VS composer.json - Removed version from theme.xml
2 parents 2f89843 + 985cf7f commit 415a139

File tree

56 files changed

+27
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+27
-160
lines changed

app/code/Magento/Core/Model/Theme.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace Magento\Core\Model;
77

88
use Magento\Framework\View\Design\ThemeInterface;
9-
use Magento\Framework\App\Filesystem\DirectoryList;
109

1110
/**
1211
* Theme model class
@@ -15,7 +14,6 @@
1514
* @method string getParentThemePath()
1615
* @method string getParentId()
1716
* @method string getThemeTitle()
18-
* @method string getThemeVersion()
1917
* @method string getPreviewImage()
2018
* @method bool getIsFeatured()
2119
* @method int getThemeId()
@@ -27,7 +25,6 @@
2725
* @method ThemeInterface setPackageCode(string $packageCode)
2826
* @method ThemeInterface setThemeCode(string $themeCode)
2927
* @method ThemeInterface setThemePath(string $themePath)
30-
* @method ThemeInterface setThemeVersion(string $themeVersion)
3128
* @method ThemeInterface setThemeTitle(string $themeTitle)
3229
* @method ThemeInterface setType(int $type)
3330
* @method ThemeInterface setCode(string $code)

app/code/Magento/Core/Model/Theme/Collection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ public function _prepareConfigurationData($configPath)
217217
'area' => $pathData['area'],
218218
'theme_path' => $themePath,
219219
'code' => $themeCode,
220-
'theme_version' => $themeConfig->getThemeVersion(),
221220
'theme_title' => $themeConfig->getThemeTitle(),
222221
'preview_image' => $media['preview_image'] ? $media['preview_image'] : null,
223222
'parent_theme_path' => $parentPath

app/code/Magento/Core/Model/Theme/Domain/Virtual.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ protected function _createStagingTheme()
119119
[
120120
'parent_id' => $this->_theme->getId(),
121121
'theme_path' => null,
122-
'theme_version' => $this->_theme->getThemeVersion(),
123122
'theme_title' => sprintf('%s - Staging', $this->_theme->getThemeTitle()),
124123
'preview_image' => $this->_theme->getPreviewImage(),
125124
'is_featured' => $this->_theme->getIsFeatured(),

app/code/Magento/Core/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
9-
<module name="Magento_Core" schema_version="2.0.0">
9+
<module name="Magento_Core" schema_version="2.0.1">
1010
</module>
1111
</config>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
/* @var $installer \Magento\Setup\Module\SetupModule */
8+
$installer = $this;
9+
10+
$installer->startSetup();
11+
$connection = $installer->getConnection();
12+
13+
/**
14+
* Remove column 'theme_version' from 'core_theme'
15+
*/
16+
$connection->dropColumn(
17+
$installer->getTable('core_theme'),
18+
'theme_version'
19+
);
20+
21+
$installer->endSetup();

app/code/Magento/Theme/Block/Adminhtml/System/Design/Theme/Edit/Tab/General.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,6 @@ protected function _addThemeFieldset($form, $formData, ThemeInterface $theme)
155155
);
156156
}
157157

158-
$themeFieldset->addField(
159-
'theme_version',
160-
$this->_getFieldTextType(),
161-
[
162-
'label' => __('Theme Version'),
163-
'title' => __('Theme Version'),
164-
'name' => 'theme_version',
165-
'required' => $this->_isFieldAttrRequired(),
166-
'note' => $this->_filterFieldNote(__('Example: 0.0.0.1 or 123.1.0.25-alpha1'))
167-
]
168-
);
169-
170158
$themeFieldset->addField(
171159
'theme_title',
172160
$this->_getFieldTextType(),
@@ -282,7 +270,6 @@ public function canShowTab()
282270
protected function _getDefaults()
283271
{
284272
$defaults = [];
285-
$defaults['theme_version'] = '0.0.0.1';
286273
$defaults['theme_title'] = __('New Theme');
287274

288275
return $defaults;

app/code/Magento/Theme/view/adminhtml/layout/adminhtml_system_design_theme_block.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@
5252
<argument name="column_css_class" xsi:type="string">theme-path</argument>
5353
</arguments>
5454
</block>
55-
<block class="Magento\Backend\Block\Widget\Grid\Column" as="theme_version">
56-
<arguments>
57-
<argument name="header" xsi:type="string" translate="true">Theme Version</argument>
58-
<argument name="index" xsi:type="string">theme_version</argument>
59-
<argument name="filter_index" xsi:type="string">main_table.theme_version</argument>
60-
<argument name="column_css_class" xsi:type="string">theme-version</argument>
61-
</arguments>
62-
</block>
6355
</block>
6456
</block>
6557
</referenceBlock>

app/design/adminhtml/Magento/backend/theme.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
-->
77
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
88
<title>Magento 2 backend</title>
9-
<version>0.1.0</version>
109
</theme>

app/design/frontend/Magento/blank/theme.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
-->
77
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
88
<title>Magento Blank</title>
9-
<version>0.1.0</version>
109
<media>
1110
<preview_image>media/preview.jpg</preview_image>
1211
</media>

app/design/frontend/Magento/luma/theme.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
-->
77
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Config/etc/theme.xsd">
88
<title>Magento Luma</title>
9-
<version>0.1.0</version>
109
<parent>Magento/blank</parent>
1110
<media>
1211
<preview_image>media/preview.jpg</preview_image>

0 commit comments

Comments
 (0)