Skip to content

Commit

Permalink
Fixed custom titles not being upgraded correctly
Browse files Browse the repository at this point in the history
Fixed #183
  • Loading branch information
Tam committed Jan 28, 2019
1 parent 81b836d commit 593a255
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
## [Unreleased] 3.5.4
## 3.5.4 - 2019-01-28

### Added
- Added support for Solspace Calendar [#184]
- Added support for Solspace Calendar. [#184]

### Fixed
- Fixed upgrade not correctly carrying over custom titles. [#183]

[#184]: https://github.com/ethercreative/seo/issues/184
[#183]: https://github.com/ethercreative/seo/issues/183

## 3.5.3 - 2019-01-23

Expand Down
8 changes: 8 additions & 0 deletions src/models/data/SeoData.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ public function __construct (SeoField $seo = null, ElementInterface $element = n
: $seo->getSettings();

// Backwards compatibility for titles in SEO v3.4.x or lower
if (
isset($config['titleRaw']) &&
is_array($config['titleRaw']) &&
isset($config['titleRaw'][0])
) {
$config['titleRaw'] = $config['titleRaw'][0];
}

if (
isset($config['titleRaw']) &&
(
Expand Down

0 comments on commit 593a255

Please sign in to comment.