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

WordPress Trac noreply at wordpress.org
Tue May 7 19:01:18 UTC 2024


#61154: Fix the 'attributes' dynamic property in WP_Block
-------------------------------------------------+-------------------------
 Reporter:  antonvlasenko                        |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Editor                               |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  php-
  testing                                        |  compatibility
-------------------------------------------------+-------------------------
Changes (by antonvlasenko):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests needs-
     testing


Comment:

 I've just submitted https://github.com/WordPress/wordpress-
 develop/pull/6500
 This PR:
 1. Fixes the `WP_Block::$attribute`s dynamic property by utilizing
 strategy proposed by @hellofromTonya in
 https://core.trac.wordpress.org/ticket/60875.
 2. Implements [https://core.trac.wordpress.org/ticket/56034#comment:70
 this suggestion].
 2. Adds unit tests to check how the newly declared magic methods on the
 `WP_Block` class handle the `$attributes` property and other declared
 public properties.

 Props @hellofromTonya.

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


More information about the wp-trac mailing list