Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: check_passwords

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
47           die (__("<strong>ERROR</strong>: please type your e-mail address"));
48           return false;
49      } else if (!is_email($_POST["newuser_email"])) {
50           die (__("<strong>ERROR</strong>: the e-mail address isn't correct"));
51           return false;
52      }
53
54      $pass1 = $_POST["pass1"];
55      $pass2 = $_POST["pass2"];
56      do_action('check_passwords', array($user_login, &$pass1, &$pass2));
57
58      if ( '' == $pass1 ) {
59           if ( '' != $pass2 )
60                die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice."));
61           $updatepassword = "";
62      } else {
63           if ('' == $pass2)
64                die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice."));
65           if ( $pass1 != $pass2 )