Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: secure_signon_cookie

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
37      else
38           $credentials['remember'] = false;
39
40      // TODO do we deprecate the wp_authentication action?
41      do_action_ref_array('wp_authenticate', array(&$credentials['user_login'], &$credentials['user_password']));
42
43      if ( '' === $secure_cookie )
44           $secure_cookie = is_ssl();
45
46      $secure_cookie = apply_filters('secure_signon_cookie', $secure_cookie, $credentials);
47
48      global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie
49      $auth_secure_cookie = $secure_cookie;
50
51      add_filter('authenticate', 'wp_authenticate_cookie', 30, 3);
52
53      $user = wp_authenticate($credentials['user_login'], $credentials['user_password']);
54
55      if ( is_wp_error($user) ) {