[wp-trac] [WordPress Trac] #64545: Style Engine: Harden add_declaration against being passed illegal values

WordPress Trac noreply at wordpress.org
Fri Jan 23 19:48:26 UTC 2026


#64545: Style Engine: Harden add_declaration against being passed illegal values
-------------------------------------------------+-------------------------
 Reporter:  andrewserong                         |       Owner:
                                                 |  isabel_brison
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.9.1
Component:  Editor                               |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  gutenberg-merge has-patch has-unit-  |     Focuses:
  tests dev-feedback                             |
-------------------------------------------------+-------------------------

Comment (by jorbin):

 Also, this is minor but I think the new
 `test_should_reject_non_string_values` test should use a dataProvidor and
 test each of the non string values seperatly so that it's always clear
 which case breaks if the underlying code is changed.

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


More information about the wp-trac mailing list