#22187 closed enhancement (fixed)
Add docblocks to wp-signup.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Inline Docs | Version: | 3.4 |
| Severity: | minor | Keywords: | has-patch commit needs-codex |
| Cc: | xoodrew@…, info@… |
Description
It's my understanding that wp-signup.php has sort of fallen by the wayside in the recent past and could use some love. By no stretch of my imagination do I think I know all there is to know about what needs to happen here, but doesn't hurt to get the ball rolling.
Some action items I can already suggest would be:
- Make it possible to overload the hard-coded CSS
- Add some docblocks for the many functions in the file
- Cleanup coding standards and optimize strings
- ???
Attachments (6)
Change History (22)
DrewAPicture
— 8 months ago
comment:1
DrewAPicture
— 8 months ago
- Cc xoodrew@… added
- Keywords has-patch added
comment:2
DrewAPicture
— 8 months ago
Related: #17166 - wp-signup dynamic strings to static strings
comment:4
DrewAPicture
— 8 months ago
Attached 22187.3.diff which:
- Allows for overloading the hard-coded CSS
- Adds first-pass docblocks to all the functions
- General coding standards and code clarification through the whole file
TODO: Clarify docblocks, look at moving some of the functions out to ms-functions.php
comment:5
DrewAPicture
— 8 months ago
Some more related tickets:
comment:6
DrewAPicture
— 5 months ago
- Component changed from Multisite to Inline Docs
- Severity changed from normal to minor
- Version set to trunk
The OCD in previous patches aside, 22187-docblocks.diff just adds docblocks to wp-signup.
comment:7
DrewAPicture
— 5 months ago
- Milestone changed from Awaiting Review to 3.6
comment:8
follow-up:
↓ 9
SergeyBiryukov
— 5 months ago
Some text needs updating:
The default styles are printed via signup_header which is hooked to wp_head. They can be overloaded by replacing the output on the signup_header action hook.
This was the case in 22187.4.diff, but not in 22187-docblocks.diff.
DrewAPicture
— 5 months ago
comment:9
in reply to:
↑ 8
DrewAPicture
— 5 months ago
- Summary changed from Clean up wp-signup.php to Add docblocks to wp-signup.php
Replying to SergeyBiryukov:
Good catch Sergey. 22187-docblocks.2.diff should cover it. See anything else that stands out?
comment:10
SergeyBiryukov
— 5 months ago
- Keywords commit added; dev-feedback removed
- Version changed from trunk to 3.4
comment:11
SergeyBiryukov
— 5 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 23362:
comment:12
SergeyBiryukov
— 5 weeks ago
As noted in ticket:24210:11, $meta value passed to confirm_blog_signup() and confirm_another_blog_signup() is an array, not a string (although it's unused in both functions):
tags/3.5.1/wp-signup.php#L209, tags/3.5.1/wp-signup.php#L343.
Also, there's an inconsistency in optional arguments. In confirm_blog_signup(), both $user_name and $user_email are optional. In confirm_another_blog_signup(), $user_name is required. Neither of them make sense as optional there, but that's out of scope for this ticket.
comment:13
SergeyBiryukov
— 5 weeks ago
In 24262:
comment:14
DrewAPicture
— 5 weeks ago
- Keywords needs-codex added
See [23362] and [24262] for phpdoc updates to:
- do_signup_header()
- wpmu_signup_stylesheet()
- show_blog_form()
- validate_blog_form()
- show_user_form()
- validate_user_form()
- signup_another_blog()
- validate_another_blog_signup()
- confirm_another_blog_signup()
- signup_user()
- validate_user_signup()
- confirm_user_signup()
- signup_blog()
- validate_blog_signup()
- confirm_blog_signup()
comment:15
toscho
— 5 weeks ago
Looks good, thanks. I am not so sure about the @since MU – shouldn’t that be a real version number (3.0)?
comment:16
SergeyBiryukov
— 5 weeks ago
@since MU is not the same as @since 3.0.0, it's used for functions that actually come from the MU codebase. The difference is specifically mentioned in ticket:16702:1.
Howdy from #WCDEN Hack Day, I thought I'd try to work on the lower-level bits today.
A conversation in IRC with @dd32 this morning led to 22187-signup-styles.diff which I think should easily allow themes to overload the hard-coded styles. I'm still not totally clear on the reasoning behind adding or not adding actions/filters to default-filters.php.