[wp-trac] [WordPress Trac] #62348: Textdomain loaded even though translations do not exist bc textdomain have identical start phrase

WordPress Trac noreply at wordpress.org
Tue Nov 5 20:11:09 UTC 2024


#62348: Textdomain loaded even though translations do not exist bc textdomain have
identical start phrase
--------------------------+-----------------------------
 Reporter:  kkmuffme      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  6.5
 Severity:  major         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If I have 2 different plugins where the textdomain starts with the same
 characters, e.g. 2 different plugins with textdomains are:
 do-something
 do-something-else

 I have translations for do-something-else, but not for do-something.

 Because of https://github.com/WordPress/wordpress-develop/blame/trunk/src
 /wp-includes/class-wp-textdomain-registry.php#L317 WP thinks that "do-
 something" textdomain has translations too, which is wrong

 I found this accidentally due to the changes in WP 6.7
 https://core.trac.wordpress.org/ticket/44937

 @swissspidy since the fix for this is simple enough, maybe this can be
 backported and shipped with 6.7

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


More information about the wp-trac mailing list