#7302 closed defect (bug) (fixed)
Improve backward compatibility in `groups_get_group()`.
| Reported by: | dcavins | Owned by: | dcavins |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7.1 |
| Component: | Groups | Version: | 2.7 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | dcavins |
Description
In r11090, we changed the signature of groups_get_group() to accept an integer (group_id) and added backcompat for the most commonly used former signature, an associative array. However, it was also possible to use a query string-style argument, because wp_parse_args() could handle that.
Patch forthcoming.
Attachments (2)
Change History (7)
#2
@
10 years ago
- Keywords commit added
7302.1.patch has irregular indentation, but otherwise looks like a good approach.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Handle integers, arrays, and query string arguments.