[wp-trac] [WordPress Trac] #53577: Use `_x()` to translate Query block pattern category
WordPress Trac
noreply at wordpress.org
Fri Jul 2 14:34:38 UTC 2021
#53577: Use `_x()` to translate Query block pattern category
-----------------------------------+----------------------
Reporter: walbo | Owner: desrosj
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8
Component: I18N | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch i18n-change | Focuses:
-----------------------------------+----------------------
Changes (by desrosj):
* owner: (none) => desrosj
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"51307" 51307]:
{{{
#!CommitTicketReference repository="" revision="51307"
Editor: Ensure the Query block pattern category is translatable.
Because the `__()` translation function was used here, the Query block
pattern category string is not translatable. `_x()` is the correct
function here as that passes the second parameter as context and not text
domain.
Follow up to [50948].
Props walbo.
Fixes #53577.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53577#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list