[wp-trac] [WordPress Trac] #50749: wp_set_script_translations() ignores failure when called before script is registered.

WordPress Trac noreply at wordpress.org
Tue Aug 11 13:54:03 UTC 2020


#50749: wp_set_script_translations() ignores failure when called before script is
registered.
--------------------------------------+------------------------------
 Reporter:  tellyworth                |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  I18N                      |     Version:  5.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by donmhico):

 @tellyworth would be great if you can check if my patch corrects the
 issue? Also the `$message` passed to `_doing_it_wrong` could be improved.
 Thank you!

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


More information about the wp-trac mailing list