#20703 closed defect (bug) (fixed)
wp.getComments logs in the user (1 + #comments) times
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | 3.3.2 |
Component: | XML-RPC | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Also wp.getPages had a similar bug, before [20807].
I've been writing an enhancement for my LoginDongle plugin, where I will use a query string param to allow an XML-RPC user to log in. All calls work fine except getComments and it's because it reuses the getComment() method, which causes the unneeded logins.
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Added a patch that moves the formatting logic out into a
_prepare_comment
method like we've done for all other content types in the 3.4 release. Also fixes a potential source of notices if the caller omits the optional fourth argument.Added some unit tests for these two methods in [UT720].