[wp-trac] [WordPress Trac] #61694: Ensure compat functions do not rely on

WordPress Trac noreply at wordpress.org
Thu Jul 18 16:14:49 UTC 2024


#61694: Ensure compat functions do not rely on
----------------------------+--------------------
 Reporter:  jorbin          |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  6.7
Component:  Bootstrap/Load  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+--------------------
 This is a follow up to #61680.

 `compat.php` is loaded very early on and its functions need to be
 standalone without dependency on functions in the rest of the codebase.

 I think that there are two improvements to be made:

 1. The top of compat.php should include some documentation to remind
 future devs of this
 2. We could add some testing of the functions to ensure they have no
 reliance on external functions (or if there are external functions, they
 are included properly and those are standalone such as with the sodium
 functions)

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


More information about the wp-trac mailing list