Changes between Initial Version and Version 1 of Ticket #51612, comment 51
- Timestamp:
- 08/19/2021 11:14:23 PM (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #51612, comment 51
initial v1 27 27 Yes, my thoughts too. Unfortunately don't think it can be made `final` now. I would have really liked if that `render()` method wasn't in there and the class was implemented as "data store" similarly to `WP_Post`. 28 28 29 On the other hand `WP_Block` can also be a "container" for other instances of `WP_Block` which makes it more complicated to work with. Thinking that needs to be documented well.29 On the other hand an instance of `WP_Block` can also be a "container" for other instances of `WP_Block` which makes it more complicated to work with. Thinking that needs to be documented well. 30 30 31 31 > I think extracting the `render` method back to `render_block` should be an easier fix, but someone with more experience and knowledge of block context/globals etc would have to check for that.