[wp-trac] [WordPress Trac] #62643: Prevent errors from `printf()` and `sprintf()` calls

WordPress Trac noreply at wordpress.org
Thu Dec 5 15:15:39 UTC 2024


#62643: Prevent errors from `printf()` and `sprintf()` calls
-------------------------+------------------------------
 Reporter:  grapestain   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  I18N         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |     Focuses:
-------------------------+------------------------------

Comment (by grapestain):

 We can say that the severity in the translation system should match that
 of the runtime. What I mean is that warning in the translation UI, but
 fatal error during runtime is a mismatch that is a recipe for issues. If
 the runtime throws fatal error, the translation system should be at least
 as strict, preventing those strings to end up loaded by the runtime. If
 the translation system allows to ignore mismatched placeholder counts, the
 runtime should as well be modified to only issue warnings instead of
 crashing.

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


More information about the wp-trac mailing list