Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51850, comment 6


Ignore:
Timestamp:
11/24/2020 10:07:47 AM (4 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51850, comment 6

    initial v1  
    66That 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.
    77
    8 Then as far as I see the magic `__get()` and `__isset()` are needed to support getting pre-filtered (wrong?) data?
     8Then 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.
    99
    1010Going to reopen #51612 with the above questions.