Ticket #14949: 14949-signon-internals.patch
File 14949-signon-internals.patch, 808 bytes (added by , 14 years ago) |
---|
-
wp-includes/user.php
24 24 */ 25 25 function wp_signon( $credentials = '', $secure_cookie = '' ) { 26 26 if ( empty($credentials) ) { 27 $credentials = array(); 27 28 if ( ! empty($_POST['log']) ) 28 29 $credentials['user_login'] = $_POST['log']; 29 30 if ( ! empty($_POST['pwd']) ) … … 37 38 else 38 39 $credentials['remember'] = false; 39 40 41 // set default credential values 42 $credentials = array_merge( array('user_login' => '', 'user_password' => ''), $credentials); 43 40 44 // TODO do we deprecate the wp_authentication action? 41 45 do_action_ref_array('wp_authenticate', array(&$credentials['user_login'], &$credentials['user_password'])); 42 46