[wp-trac] [WordPress Trac] #43645: WP 4.9.4 removes !function_exists check for "__" in wp-includes/l10n.php

WordPress Trac noreply at wordpress.org
Tue Mar 27 15:14:52 UTC 2018


#43645: WP 4.9.4 removes !function_exists check for "__" in wp-includes/l10n.php
--------------------------+-----------------------------
 Reporter:  boland        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I ran into this issue while working on a site where WordPress handles the
 front-end and CakePHP runs in the background to handle some js application
 outputs.

 CakePHP also defines a
 {{{
 __()
 }}}
 translation function in its global scope, removing the
 {{{
 if(!function_exists('__'))
 }}}
 check on the translation function in wp-includes/l10n.php causes a fatal
 redeclaration error when both system cores are loaded on a request.

 Was there a reason this check was removed?

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


More information about the wp-trac mailing list