Add language and text_direction attributes to bloginfo. Set lang and dir attributes in admin header's html tag. #3136
git-svn-id: http://svn.automattic.com/wordpress/trunk@4217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -127,6 +127,18 @@ function get_bloginfo($show='') {
|
||||
global $wp_version;
|
||||
$output = $wp_version;
|
||||
break;
|
||||
case 'language':
|
||||
$output = get_locale();
|
||||
if ( empty($output) )
|
||||
$output = 'en-US';
|
||||
$output = str_replace('_', '-', $output);
|
||||
break;
|
||||
case 'text_direction':
|
||||
global $wp_locale;
|
||||
$output = $wp_locale->text_direction;
|
||||
if ( empty($output) )
|
||||
$output = 'ltr';
|
||||
break;
|
||||
case 'name':
|
||||
default:
|
||||
$output = get_option('blogname');
|
||||
|
||||
Reference in New Issue
Block a user