Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #44084, comment 15


Ignore:
Timestamp:
08/27/2018 01:50:32 PM (6 years ago)
Author:
desrosj
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44084, comment 15

    initial v1  
    11[attachment:"44084.diff"] is a different approach than [attachment:"file.diff"].
    22
    3 It utilizes the user ID stored in the `WP_User_Request` objectto prevent an unnecessary database query in `get_user_by()`. It also switches to the site's default locale if the current user is using a different locale, and switches back after the file is done generating.
     3It utilizes the user ID stored in the `WP_User_Request` object to prevent an unnecessary database query in `get_user_by()`. It also switches to the site's default locale if the current user is using a different locale, and switches back after the file is done generating.
    44
    55There are a few strings not included in the actual file that are still not translated: