Skip to content

Commit e21dbff

Browse files
committed
Revert "Fix overriding non-open class outside module"
This reverts commit 5c3004b, because I'm not convinced that's a good idea. We should double-check that **not** having `+supportsSecureCoding` declared on this subclass doesn't make it fail to be copy/pasted (i.e. archived/unarchived)—like similar cases happened when running Aztec tests. Or if we need `+supportsSecureCoding`, we need to find a way to override/redefine it across module boundaries…
1 parent 5c3004b commit e21dbff

File tree

1 file changed

+3
-0
lines changed
  • WordPressEditor/WordPressEditor/Classes/Plugins/WordPressPlugin/Gutenberg

1 file changed

+3
-0
lines changed

WordPressEditor/WordPressEditor/Classes/Plugins/WordPressPlugin/Gutenberg/Gutenblock.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ class Gutenblock: ParagraphProperty {
1010
required public init?(coder aDecoder: NSCoder){
1111
super.init(coder: aDecoder)
1212
}
13+
14+
override public class var supportsSecureCoding: Bool { true }
15+
1316
}

0 commit comments

Comments
 (0)