Opened 10 years ago
Closed 10 years ago
#7114 closed enhancement (fixed)
XProfile: Do not duplicate populate logic in BP_XProfile_Field
| Reported by: | r-a-y | Owned by: | r-a-y |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | Extended Profile | Version: | 2.4.0 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
Description (last modified by )
While debugging #7112, I saw some duplicate DB logic that we can remove.
The $wpdb->get_row() call is duplicated in both BP_XProfile_Field::populate() and BP_XProfile_Field::get_instance() DB methods.
Attached patch merges the logic into the populate() method and passes existing unit tests.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks good