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

WordPress Trac noreply at wordpress.org
Mon Jan 14 01:55:57 UTC 2019


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

Comment (by dd32):

 Is wrapping with `function_exists()` actually compatible? Wouldn't this
 cause any sites to loose translations if other-project didn't support the
 WordPress translations? Shouldn't Laravel wrap it in `function_exists()`
 as well? (and loose translation support if imported into WordPress) etc.

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


More information about the wp-trac mailing list