[wp-trac] [WordPress Trac] #41562: PHP 7.2: create_function deprecation in \Gettext_Translations class

WordPress Trac noreply at wordpress.org
Wed Oct 4 13:26:17 UTC 2017


#41562: PHP 7.2: create_function deprecation in \Gettext_Translations class
----------------------------+---------------------
 Reporter:  ayeshrajans     |       Owner:  pento
     Type:  task (blessed)  |      Status:  closed
 Priority:  normal          |   Milestone:  4.9
Component:  I18N            |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  needs-patch     |     Focuses:
----------------------------+---------------------

Comment (by johnbillion):

 In [changeset:"41730"]:
 {{{
 #!CommitTicketReference repository="" revision="41730"
 I18N: Improvements to the tests for plural forms.

 * Move the `create_function()` code into a file that's only loaded, and
 into a test that's only run, on PHP <= 7.2 to avoid deprecated warnings in
 7.2+.
 * Convert the test skipping into a failure if the GlotPress locale file
 cannot be downloaded.
 * Ensure `test_exceptions` fails if an exception is not thrown.
 * Docs improvements

 See #41562, #40109
 }}}

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


More information about the wp-trac mailing list