Make WordPress Core

Opened 9 years ago

Last modified 18 months ago

#31928 new enhancement

Move wp-signup.php functions to a wp-includes directory

Reported by: joemcgill's profile joemcgill Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Login and Registration Keywords: has-patch needs-refresh
Focuses: multisite Cc:


Right now, all of the functions that deal with multisite registration are located in the wp-signup.php file, mixed in with control and template logic. This makes it difficult to reuse any of the registration functionality and makes it harder to create a custom registration experience for a network.

I'd propose moving all of the functional logic into a file in the wp-includes folder and include that file at the the beginning of the registration page, at minimum. Additionally, we could big and make wp-signup.php a dummy file and put everything into the wp-includes folder, as @markjaquith suggests in #31744. Even so, I think the functional logic should be separated out from the rest.

Attachments (1)

31928.diff (83.5 KB) - added by imath 7 years ago.

Download all attachments as: .zip

Change History (6)

#1 @oceandigital
9 years ago

"makes it harder to create a custom registration experience for a network"

Im all in favour of a fix that will cure this issue. There needs to be an ability for each sub site to have a custom registration process.

This ticket was mentioned in Slack in #core-multisite by joemcgill. View the logs.

9 years ago

#3 @imath
7 years ago

  • Keywords has-patch added


in 31928.diff, i've moved all wp-signup.php functions to wp-includes/ms-functions.php and wp-includes/ms-template.php. I also did the same with wp-activate.php.
I've created a new wp-includes/theme-compat/signup.php template to allow theme designers to use their own template and have this default one in case they don't.
I've also put the css rules into a css file: wp-includes/css/wp-signup.css.

Both files wp-signup.php and wp-activate.php are sharing this css file and the template.

I apologise if my function names are a bit exotic, i've try to do my best as i'm not so good at english.

Last edited 7 years ago by imath (previous) (diff)

7 years ago

#4 @sabernhardt
18 months ago

  • Component changed from Networks and Sites to Login and Registration
  • Keywords needs-refresh added
  • Milestone changed from Awaiting Review to Future Release

#5 @sabernhardt
18 months ago

#33500 was marked as a duplicate.

Note: See TracTickets for help on using tickets.