PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Multisite uses wp-signup.php, custom_registration_page() fails

  1. thelight
    Member

    We're running a Multi-Site environment powered by WordPress 3.3, the registration process is redirected towards wp-signup.php, even when accessing wp-login.php?action=register, so naturally the latest version of the addon (1.2.11) does not redirect properly. function custom_registration_page() contains a $script_name != 'wp-login.php' || $action != 'register') that will evaluate to true and return thus no redirection for us. Had to add an additional $script_name != 'p-signup.php' condition to let the hook fall through.

    And we then did realize that wp-login.php @line 481 http://core.trac.wordpress.org/browser/tags/3.3.1/wp-login.php#L481 explicitly says: // Multisite uses wp-signup.php, so either we're missing something here (although a search for 'signup.php' does not yield results inside the Gravity Forms addon code) or this feature of the addon does not function properly with Multisite.

    Posted 12 years ago on Wednesday January 18, 2012 | Permalink
  2. Hi thelight,

    On line 473, you'll see the link is still pointing to "/wp-login.php?action=register". The redirect that happens after they arrive at the page should not prevent the custom_registration_page() function from catching the original request for "/wp-login.php?action=register" and correctly redirecting to the custom registration page.

    I've tested this locally and was unable to recreate the issue. If you are still able to recreate this issue, would you mind sending me FTP access and a WP login so I can take a look at what might be causing the issue?

    Posted 12 years ago on Friday January 20, 2012 | Permalink