From 9231c52c70d5881b429ead724efef278ce254970 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 5 Apr 2013 23:28:40 +0000 Subject: [PATCH] Logged out warnings: fix phpdoc, props ocean90, see #23295 git-svn-id: https://develop.svn.wordpress.org/trunk@23922 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 30a7f1715b..0afa50b6d3 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3888,7 +3888,7 @@ function wp_checkdate( $month, $day, $year, $source_date ) { /** * Load the auth check for monitoring whether the user is still logged in. - * Can be disabled with remove_action( 'init', 'wp_auth_check_load' ); + * Can be disabled with remove_action( 'admin_init', 'wp_auth_check_load' ); * * @since 3.6.0 * @@ -3924,7 +3924,7 @@ 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 ); - + // Let plugins change this if they know better. $same_domain = apply_filters( 'wp_auth_check_same_domain', $same_domain ); $wrap_class = $same_domain ? 'hidden' : 'hidden fallback';