From 54f366da0b4f1f46324909e6f3a8b1271d6fe2b2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 17 Jan 2015 17:19:57 +0000 Subject: [PATCH] Pass $force_reauth value to the 'login_url' filter. props jfarthing84, MikeHansenMe. fixes #31015. git-svn-id: https://develop.svn.wordpress.org/trunk@31228 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 51cc66bb23..6872a01dd0 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -347,10 +347,11 @@ function wp_login_url($redirect = '', $force_reauth = false) { * * @since 2.8.0 * - * @param string $login_url The login URL. - * @param string $redirect The path to redirect to on login, if supplied. + * @param string $login_url The login URL. + * @param string $redirect The path to redirect to on login, if supplied. + * @param bool $force_reauth Whether to force reauthorization, even if a cookie is present. */ - return apply_filters( 'login_url', $login_url, $redirect ); + return apply_filters( 'login_url', $login_url, $redirect, $force_reauth ); } /**