mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Logged out warnings: fix phpdoc, props ocean90, see #23295
git-svn-id: https://develop.svn.wordpress.org/trunk@23922 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user