Login: In `login_header()`, use correct separator for RTL locales.

Props ramiy.
Fixes #35737.

Built from https://develop.svn.wordpress.org/trunk@36487


git-svn-id: http://core.svn.wordpress.org/trunk@36454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-02-06 22:56:27 +00:00
parent 146320744f
commit 6e60f8b6f8
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-36486';
$wp_version = '4.5-alpha-36487';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -56,6 +56,8 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
if ( $shake_error_codes && $wp_error->get_error_code() && in_array( $wp_error->get_error_code(), $shake_error_codes ) )
add_action( 'login_head', 'wp_shake_js', 12 );
$separator = is_rtl() ? ' › ' : ' ‹ ';
?><!DOCTYPE html>
<!--[if IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php language_attributes(); ?>>
@ -65,7 +67,7 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>
<title><?php echo get_bloginfo( 'name', 'display' ) . $separator . $title; ?></title>
<?php
wp_enqueue_style( 'login' );