Changeset 7991 for trunk/wp-login.php
- Timestamp:
- 05/25/2008 03:50:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r7979 r7991 1 1 <?php 2 /** 3 * 4 * @package WordPress 5 */ 6 7 /** Make sure that the WordPress bootstrap has ran before continuing. */ 2 8 require( dirname(__FILE__) . '/wp-load.php' ); 3 9 4 // Rather than duplicating this HTML all over the place, we'll stick it in function 10 /** 11 * login_header() - Outputs the header for the login page 12 * 13 * @package WordPress 14 * @uses do_action() Calls the 'login_head' for outputting HTML in the Login 15 * header. 16 * @uses apply_filters() Calls 'login_headerurl' for the top login link. 17 * @uses apply_filters() Calls 'login_headertitle' for the top login title. 18 * @uses apply_filters() Calls 'login_message' on the message to display in the 19 * header. 20 * @uses $error The error global, which is checked for displaying errors. 21 * 22 * @param string $title Optional. WordPress Login Page title to display in 23 * <title/> element. 24 * @param string $message Optional. Message to display in header. 25 * @param WP_Error $wp_error Optional. WordPress Error Object 26 */ 5 27 function login_header($title = 'Login', $message = '', $wp_error = '') { 6 28 global $error; … … 57 79 } // End of login_header() 58 80 81 /** 82 * retrieve_password() - Handles sending password retrieval email to user 83 * 84 * {@internal Missing Long Description}} 85 * 86 * @uses $wpdb WordPress Database object 87 * 88 * @return bool|WP_Error True: when finish. WP_Error on error 89 */ 59 90 function retrieve_password() { 60 91 global $wpdb; … … 111 142 } 112 143 144 /** 145 * reset_password() - Handles resetting the user's password 146 * 147 * {@internal Missing Long Description}} 148 * 149 * @uses $wpdb WordPress Database object 150 * 151 * @param string $key Hash to validate sending user's password 152 * @return bool|WP_Error 153 */ 113 154 function reset_password($key) { 114 155 global $wpdb; … … 145 186 } 146 187 188 /** 189 * register_new_user() - Handles registering a new user 190 * 191 * {@internal Missing Long Description}} 192 * 193 * @param string $user_login User's username for logging in 194 * @param string $user_email User's email address to send password and add 195 * @return int|WP_Error Either user's ID or error on failure. 196 */ 147 197 function register_new_user($user_login, $user_email) { 148 198 $errors = new WP_Error();
Note: See TracChangeset
for help on using the changeset viewer.