[wp-trac] [WordPress Trac] #54086: bloginfo language issue
WordPress Trac
noreply at wordpress.org
Wed Sep 8 20:41:12 UTC 2021
#54086: bloginfo language issue
--------------------------------+------------------------------
Reporter: kukac7 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 5.8
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------------
Comment (by spacedmonkey):
Hello @kukac7, welcome to track.
language can be tricky to workout. determine_locale and get_locale are
complex functions.
If you are looking for the site language, have you tried calling echo
get_option( 'WPLANG' ); instead of echo get_bloginfo( 'language' ). This
might work better in this context.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54086#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list