wp_auth_check_html

函数


wp_auth_check_html ( No parameters )
定义位置
  • wp-includes/functions.php
    , line 7114
引入
3.6.0
弃用

Outputs the HTML that shows the wp-login dialog when the user is no longer logged in.

function wp_auth_check_html() {
	$login_url      = wp_login_url();
	$current_domain = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'];
	$same_domain    = ( strpos( $login_url, $current_domain ) === 0 );

	/**
	 * Filters whether the authentication check originated at the same domain.
	 *
	 * @since 3.6.0
	 *
	 * @param bool $same_domain Whether the authentication check originated at the same domain.
	 */
	$same_domain = apply_filters( 'wp_auth_check_same_domain', $same_domain );
	$wrap_class  = $same_domain ? 'hidden' : 'hidden fallback';

	?>
	
'1', 'wp_lang' => get_user_locale(), ), $login_url ); ?>