Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #51850, comment 5


Ignore:
Timestamp:
11/24/2020 12:26:23 AM (4 years ago)
Author:
noisysocks
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51850, comment 5

    v1 v2  
    99
    1010I opted for (2) because (1) involves doing unnecessary work in the constructor and `WP_Block::render()` is a fairly warm path that is called when viewing a post.
     11
     12Note that the dynamic properties are documented using `@property` PHPDoc attributes and so auto completion will still work for these properties in most IDEs.