Changes between Initial Version and Version 1 of Ticket #7114
- Timestamp:
- 06/09/2016 05:55:15 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7114
- Property Summary XProfile: Do not duplicate caching logic in BP_XProfile_Field → XProfile: Do not duplicate populate logic in BP_XProfile_Field
-
Ticket #7114 – Description
initial v1 1 While debugging #7112, I saw some duplicate cachinglogic that we can remove.1 While debugging #7112, I saw some duplicate DB logic that we can remove. 2 2 3 See attached patch. 3 The $wpdb->get_row() call is duplicated in both `BP_XProfile_Field::populate()` and `BP_XProfile_Field::get_instance()` DB methods. 4 5 Attached patch merges the logic into the `populate()` method and passes existing unit tests.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)