Add some cookie filters to allow plugins more control over SSL cookie delivery. see #15330

git-svn-id: http://svn.automattic.com/wordpress/trunk@17227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2011-01-06 04:08:23 +00:00
parent 1d6b027adc
commit 8066547be3
2 changed files with 11 additions and 4 deletions

View File

@@ -43,6 +43,8 @@ function wp_signon( $credentials = '', $secure_cookie = '' ) {
if ( '' === $secure_cookie )
$secure_cookie = is_ssl();
$secure_cookie = apply_filters('secure_signon_cookie', $secure_cookie, $credentials);
global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie
$auth_secure_cookie = $secure_cookie;