Changes between Initial Version and Version 1 of Ticket #51850, comment 6
- Timestamp:
- 11/24/2020 10:07:47 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #51850, comment 6
initial v1 6 6 That seems to introduce two states of `WP_Block`, one with data from before the filters are run, and another after the filters (after `render()`). This seems to bring some back-compat problems: filters were run on the block data before WP_Block was instantiated, so the filtered, "correct" data was in the instance from the beginning. Now the "correct" data is available only after `WP_Block::render()` has been run. 7 7 8 Then as far as I see the magic `__get()` and `__isset()` are needed to support getting pre-filtered (wrong?) data ?8 Then as far as I see the magic `__get()` and `__isset()` are needed to support getting pre-filtered (wrong?) data, or rather may get the wrong data depending on whether render() was run or not. 9 9 10 10 Going to reopen #51612 with the above questions.