3

Why does the root layout xml node have a version number:

<layout version="0.1.0">

I have searched the source code and cannot find this being used. Is it a feature that never got implemented? or taken out?

Marty Wallace
  • 5,631
  • 13
  • 65
  • 90

2 Answers2

3

Vestigial convention which was never implemented. It can be safely ignored/omitted.

benmarks
  • 16,675
  • 4
  • 41
  • 108
1

Very good question. I've been wondering the same for a long time, since I worked with Magento 1.0 (some eons ago).
I got to the conclusion that is useless. In my custom modules that have a layout I don't even add the version attribute and it works just fine.
Even for the custom themes where I needed to copy one core layout file to my theme an modify it, I removed the version attribute and it worked.
I can just assume that someone had an idea about layout versioning (or inheritance) that didn't stick. If it was a feature that was taken out it didn't live to see the first release.
This question was asked on the magento forum more than 5 years ago and got no answer

Marius
  • 197,939
  • 53
  • 422
  • 830