Skip to content

get_locale() used instead of get_user_locale() in admin area #1267

@abuyoyo

Description

@abuyoyo

Behavior:

While in the admin area, metabox titles and description appear in site locale's language, while the rest of the admin page is displayed in the user's locale/language.

I've changed l10ni18n - get_locale() -> get_user_locale() and it solved my problem.
But on my setup I'm not using cmb on the front end (which should still use get_locale() ) so obviously that's not the solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions