[wp-trac] [WordPress Trac] #61154: Fix the 'attributes' dynamic property in WP_Block

WordPress Trac noreply at wordpress.org
Thu Feb 20 22:12:23 UTC 2025


#61154: Fix the 'attributes' dynamic property in WP_Block
-------------------------------------------------+-------------------------
 Reporter:  antonvlasenko                        |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  6.8
Component:  Editor                               |     Version:  6.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  php-
  testing php82 has-testing-info early           |  compatibility
-------------------------------------------------+-------------------------

Comment (by joemcgill):

 Just to add some more context to this ticket, given that we're getting
 close to the deadline for `early` tickets in the 6.8 milestone.

 Even though, PHP 8.2 deprecated dynamic properties, they can still be
 supported by explicitly setting the `AllowDynamicProperties` attribute
 ([https://www.php.net/manual/en/class.allowdynamicproperties.php PHP
 docs]). This was added to the `WP_Block` class in [54133].

 Removing the need for that attribute is still worth pursuing, but we do
 have some runway before these result in errors. Given the number of
 classes that could potentially be affected, I'm curious why only
 `WP_Block` (this issue) and `WP_Term` (#61890) were singled out from
 #60875. @antonvlasenko or @hellofromTonya do you have any additional
 context to provide?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61154#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list