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

WordPress Trac noreply at wordpress.org
Tue Sep 17 16:42:58 UTC 2024


#61694: Ensure compat functions do not rely on external functions
------------------------------+---------------------
 Reporter:  jorbin            |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  6.7
Component:  Bootstrap/Load    |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------

Comment (by dmsnell):

 Perhaps there could be additional word-smithing to clarify some of the
 jargon:

 > This ~~F~~file is loaded before WordPress has been initialized (before
 {@see functions.php}.
 > Ergo, please ensure you do not call functions from this file defined
 later in the boot process.
 > Only use functions in this file which are built into all supported PHP
 versions or otherwise
 > defined within this file.

 This despite the fact that other function calls //are// already called,
 but that's the nature of legacy code.

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


More information about the wp-trac mailing list