title: Wordpress : Call to undefined function register_new_user()
body: <p>When I take the register form outside the url path 'wp-login.php?action=register' it throwbacks the error</p>
  
  <pre><code>( ! ) SCREAM: Error suppression ignored for
  ( ! ) Fatal error: Call to undefined function register_new_user() in     C:\wamp\www\mysite-t\wp-content\themes\mysite\functions\theme-access.php on line 74
  Call Stack
  #   Time    Memory  Function    Location
  1   0.0003  676128  {main}( )   ..\index.php:0
  2   0.0005  680960  require( 'C:\wamp\www\mysite-t\wp-blog-header.php' )      ..\index.php:17
  3   0.0008  707056  require_once( 'C:\wamp\www\mysite-t\wp-load.php' )  ..\wp-blog-header.php:12
  4   0.0011  725040  require_once( 'C:\wamp\www\mysite-t\wp-config.php' )    ..\wp-load.php:29
  5   0.0019  858224  require_once( 'C:\wamp\www\mysite-t\wp-settings.php' )  ..\wp-config.php:90
  6   1.2878  34464032    do_action( )    ..\wp-settings.php:308
  7   1.3151  34734896    call_user_func_array ( )    ..\plugin.php:406
  8   1.3151  34734928    edd_post_actions( ) ..\plugin.php:406
  9   1.3151  34735016    do_action( )    ..\actions.php:40
  10  1.3151  34736392    call_user_func_array ( )    ..\plugin.php:406
  11  1.3151  34736424    forest_process_registre_form( ) ..\plugin.php:406
  </code></pre>
  
  <p>Here is my form</p>
  
  <pre><code>&lt;form id="registre_form"  class="horizontal-form" action="" method="post"&gt;
                        &lt;fieldset&gt;
  
                          &lt;div class="input-group"&gt;
                              &lt;label for="user_login"&gt;&lt;?php echo __( 'Username', 'forest' ); ?&gt;:&lt;/label&gt;
                              &lt;div class="inputs"&gt;
                                &lt;input name="user_login" id="user_login" class="required" type="text" value="&lt;?php echo isset($_POST['user_login']) ? esc_attr(stripslashes($_POST['user_login'])):''; ?&gt;"/&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="input-group"&gt;
                              &lt;label for="user_email"&gt;&lt;?php echo __( 'E-mail Addy', 'forest' ); ?&gt;:&lt;/label&gt;
                              &lt;div class="inputs"&gt;
                                &lt;input name="user_email" id="user_email" class="required" type="text" value="&lt;?php echo isset($_POST['user_email']) ? esc_attr(stripslashes($_POST['user_email'])):''; ?&gt;"/&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="input-group"&gt;
                              &lt;div class="inputs"&gt;
                               &lt;em&gt;&lt;?php echo __( 'The password will be e-mailed to you.', 'forest' ); ?&gt;&lt;/em&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-submit"&gt;
                               &lt;input type="hidden" name="edd_redirect" value="&lt;?php bloginfo('url') ?&gt;/wp-login.php?action=register&amp;success=ok"/&gt;
                              &lt;input type="hidden" name="edd-registre-nonce" value="&lt;?php echo wp_create_nonce( 'edd-registre-nonce' ); ?&gt;"/&gt;
                              &lt;input type="hidden" name="edd_action" value="user_registre"/&gt;
                              &lt;button type="submit" class="btn-icon submit"&gt;&lt;?php echo __( 'Create Account', 'forest' ); ?&gt;&lt;/button&gt;
                          &lt;/div&gt;
  
                      &lt;/fieldset&gt;
                  &lt;/form&gt;
  </code></pre>
  
  <p>and here is the function that fails that processes register_new_user() </p>
  
  <pre><code>function forest_process_registre_form( $data ) {
  if ( wp_verify_nonce( $data['edd-registre-nonce'], 'edd-registre-nonce' ) ) {
  
      $errors = register_new_user($data['user_login'], $data['user_email']);
      if ( isset($errors) &amp;&amp; is_array($errors) ){
          foreach($errors as $error) {
              if(count($error) &gt; 0) {
                  foreach($error as $e) {
                      edd_set_error( 'email_incorrect', $e[0]);
                  }
              }
          }
      }
      // Check for errors and redirect if none present
      $errors = edd_get_errors();
      if ( ! $errors ) {
          $redirect = apply_filters( 'edd_login_redirect', $data['edd_redirect'], $user_ID );
          wp_redirect( $redirect );
          exit;
      }
  }
  }
   add_action( 'edd_user_registre', 'forest_process_registre_form' );
  </code></pre>
  
  <p>It works on the register page when the url = wp-login.php?action=register but fails to complete the function when its place on any url outside that page.   Is there any way I can correct this, is it possible to do inb wordpress?</p>