[wp-trac] [WordPress Trac] #52592: PHP warning when the label property is missing from register_block_style

WordPress Trac noreply at wordpress.org
Fri Jul 12 08:50:21 UTC 2024


#52592: PHP warning when the label property is missing from register_block_style
-------------------------------------------------+-------------------------
 Reporter:  poena                                |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.7
Component:  Editor                               |     Version:  5.3
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-  |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by poena):

 I tried but was not able to figure out how to create a new test to check
 that if the label is missing, the style is not registered and the
 doing_it_wrong message is triggered.

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


More information about the wp-trac mailing list