WordPress.org

Make WordPress Core

Changeset 19783


Ignore:
Timestamp:
01/29/2012 06:47:41 PM (6 years ago)
Author:
nacin
Message:

Translate http://wordpress.org/ for the wp-login.php header image URL. Clean up. props zeo, fixes #19364.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r19712 r19783  
    7777
    7878    do_action( 'login_enqueue_scripts' );
    79     do_action( 'login_head' ); ?>
     79    do_action( 'login_head' );
     80
     81    if ( is_multisite() ) {
     82        $login_header_url   = network_home_url();
     83        $login_header_title = $current_site->site_name;
     84    } else {
     85        $login_header_url   = __( 'http://wordpress.org/' );
     86        $login_header_title = __( 'Powered by WordPress' );
     87    }
     88
     89    $login_header_url   = apply_filters( 'login_headerurl',   $login_header_url   );
     90    $login_header_title = apply_filters( 'login_headertitle', $login_header_title );
     91?>
    8092</head>
    8193<body class="login">
    82 <?php   if ( !is_multisite() ) { ?>
    83 <div id="login"><h1><a href="<?php echo esc_url( apply_filters('login_headerurl', 'http://wordpress.org/') ); ?>" title="<?php echo esc_attr( apply_filters('login_headertitle', __( 'Powered by WordPress' ) ) ); ?>"><?php bloginfo('name'); ?></a></h1>
    84 <?php   } else { ?>
    85 <div id="login"><h1><a href="<?php echo esc_url( apply_filters('login_headerurl', network_home_url() ) ); ?>" title="<?php echo esc_attr( apply_filters('login_headertitle', $current_site->site_name ) ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
    86 <?php   }
     94    <div id="login">
     95        <h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
     96<?php
     97    unset( $login_header_url, $login_header_title );
    8798
    8899    $message = apply_filters('login_message', $message);
Note: See TracChangeset for help on using the changeset viewer.