Opened 12 years ago
Closed 12 years ago
#26148 closed defect (bug) (fixed)
PHPDoc updates for /wp-includes/user.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.9 | Priority: | normal |
| Severity: | normal | Version: | 3.8 |
| Component: | Users | Keywords: | has-patch |
| Focuses: | docs | Cc: |
Description
Added PHPDoc blocks for two functions introduced in 2.8, and updated signatures in others for better specificity of params and returns.
Attachments (5)
Change History (20)
#2
@
12 years ago
- Keywords 2nd-opinion added
Refreshed patch. One thing different is in wp_signon(), where $credentials was set as an optional string, but is actually an array in the function, so I made the signature change to reflect what was actually being used/checked for. I didn't think I was stretching too far in doing so as part of an inline doc update, but if that's not the case I can change back to the previous signature.
#5
follow-ups:
↓ 6
↓ 10
@
12 years ago
- Milestone changed from Awaiting Review to 3.9
26148.2.patch is another pass.
$secure_cookieshould remainbool, even if its default value is a string, see 2:ticket:27130.add_filter()in line 105 is redundant since [24848].- Removed some obsolete
$wpdbreferences. - Some more fixes and additions.
#6
in reply to:
↑ 5
@
12 years ago
Replying to SergeyBiryukov:
add_filter()in line 105 is redundant since [24848].
It should probably be removed in a separate commit to avoid confusion.
#7
follow-ups:
↓ 8
↓ 11
@
12 years ago
- Keywords needs-patch added; has-patch 2nd-opinion removed
As is the custom in inline-documentation patches, there should not be any code changes that fall outside of basic documentation needs. Basic needs could include things like adding braces to conditionals after adding inline documentation. Those needs would, however, exclude things like unnecessary whitespacing.
So, as in 26148.2.patch:
- The parameter default change in
wp_signon()should be removed. - Whitespacing in
wp_authenticate_username_password(), andwp_authenticate_cookie()should be removed.
#8
in reply to:
↑ 7
;
follow-up:
↓ 9
@
12 years ago
Replying to DrewAPicture:
The parameter default change in
wp_signon()should be removed.
Let's reopen #27130 then :)
#9
in reply to:
↑ 8
@
12 years ago
Replying to SergeyBiryukov:
Replying to DrewAPicture:
The parameter default change in
wp_signon()should be removed.
Let's reopen #27130 then :)
Re-opened.
#11
in reply to:
↑ 7
@
12 years ago
- Keywords has-patch added; needs-patch removed
Replying to DrewAPicture:
As is the custom in inline-documentation patches, there should not be any code changes that fall outside of basic documentation needs.
26148.3.patch excludes unrelated changes.
#12
@
12 years ago
- Owner set to DrewAPicture
- Resolution set to fixed
- Status changed from new to closed
In 27353:
#13
@
12 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Just noticed that $username and $password in wp_authenticate_cookie() are always passed.
26148.4.patch is an additional clarification.
Refreshed patch with updates after other docs added.