[wp-trac] [WordPress Trac] #60193: Tests: Expand hook priority call order tests

WordPress Trac noreply at wordpress.org
Thu Jan 4 19:48:37 UTC 2024


#60193: Tests: Expand hook priority call order tests
------------------------------+------------------------------
 Reporter:  hellofromTonya    |      Owner:  hellofromTonya
     Type:  enhancement       |     Status:  assigned
 Priority:  normal            |  Milestone:  6.5
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-unit-tests
  Focuses:                    |
------------------------------+------------------------------
 #30875 identified more tests are needed to further test the call order for
 various priority data types.

 Though `add_action()` and `add_filter()` priority are documented as `int`,
 there is no enforcement to require only an integer data type. It's highly
 likely numeric strings are being passed.

 What happens if non-numeric data types and types are passed? These would
 represent the unhappy path datasets.

 This ticket proposes adding both happy and unhappy datasets to further
 document what should happen for the call order when given the priority of
 different data types and values.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60193>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list