Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #39295, comment 3


Ignore:
Timestamp:
09/27/2020 05:07:25 PM (4 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39295, comment 3

    v1 v2  
    11[attachment:"39295.2.diff"] is a refresh that follows the approach of [attachment:"39295.diff"] with some improvements:
    2 * Simplified logic for consistency with `get_locale()`.
     2* Simplified the logic for consistency with `get_locale()`.
    33* Moved the filter name out of the translatable string.
    44* The test performs the assertions after restoring the current locale, to avoid affecting other tests in case of failure.