Ticket #42537: 42537.2.diff
File 42537.2.diff, 1.8 KB (added by , 6 years ago) |
---|
-
wp-login.php
115 115 116 116 if ( is_multisite() ) { 117 117 $login_header_url = network_home_url(); 118 $login_header_title = get_network()->site_name;119 118 } else { 120 119 $login_header_url = __( 'https://wordpress.org/' ); 121 $login_header_title = __( 'Powered by WordPress' );122 120 } 123 121 124 122 /** … … 130 128 */ 131 129 $login_header_url = apply_filters( 'login_headerurl', $login_header_url ); 132 130 133 /**134 * Filters the title attribute of the header logo above login form.135 *136 * @since 2.1.0137 *138 * @param string $login_header_title Login header logo title attribute.139 */140 $login_header_title = apply_filters( 'login_headertitle', $login_header_title );141 142 131 /* 143 * To match the URL /titleset above, Multisite sites have the blog name,144 * while single sites get the header title.132 * To match the URL set above, Multisite sites have the blog name, 133 * while single sites get the WordPress attribution. 145 134 */ 146 135 if ( is_multisite() ) { 147 136 $login_header_text = get_bloginfo( 'name', 'display' ); 148 137 } else { 149 $login_header_text = $login_header_title;138 $login_header_text = __( 'Powered by WordPress' ); 150 139 } 151 140 152 141 $classes = array( 'login-action-' . $action, 'wp-core-ui' ); … … 187 176 do_action( 'login_header' ); 188 177 ?> 189 178 <div id="login"> 190 <h1><a href="<?php echo esc_url( $login_header_url ); ?>" t itle="<?php echo esc_attr( $login_header_title ); ?>" tabindex="-1"><?php echo $login_header_text; ?></a></h1>179 <h1><a href="<?php echo esc_url( $login_header_url ); ?>" tabindex="-1"><?php echo $login_header_text; ?></a></h1> 191 180 <?php 192 181 193 unset( $login_header_url , $login_header_title);182 unset( $login_header_url ); 194 183 195 184 /** 196 185 * Filters the message to display above the login form.