[wp-trac] [WordPress Trac] #41498: Why are global functions not wrapped in function_exists?

WordPress Trac noreply at wordpress.org
Wed Feb 28 14:37:33 UTC 2024


#41498: Why are global functions not wrapped in function_exists?
-----------------------------+----------------------
 Reporter:  doecode          |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  I18N             |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by swissspidy):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 WordPress is moving away from pluggable functions like this and we
 shouldn't be adding new ones.  Doing so could lead to all sorts of trouble
 and backward compatibility issues down the road as we suddenly can't be
 certain about how `__()` is used anymore. For example, we would never be
 able to add additional parameters for things like gender (see #42725). In
 short, this would put us in a bad spot.

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


More information about the wp-trac mailing list