[wp-trac] [WordPress Trac] #52696: __() avoiding default language fallback

WordPress Trac noreply at wordpress.org
Thu Jun 8 11:29:02 UTC 2023


#52696: __() avoiding default language fallback
----------------------------------------+-----------------------------
 Reporter:  drzraf                      |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  I18N                        |     Version:
 Severity:  minor                       |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+-----------------------------

Comment (by samuelsilvapt):

 @ckanitz I'm here too! What's your name? I'll try to find you :D

 About your approach, I think we should return always a bool, not a string.
 So, what do you think about this:

 {{{#!php
 <?php
 return empty( $translations->entries );
 }}}

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


More information about the wp-trac mailing list