WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51612, comment 51


Ignore:
Timestamp:
08/19/2021 11:14:23 PM (4 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51612, comment 51

    initial v1  
    2727Yes, 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`.
    2828
    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.
     29On 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.
    3030
    3131> 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.