Opened 11 years ago
Closed 10 years ago
#35756 closed enhancement (fixed)
Refactor to use function in `wpdb` to find `charset_collate`
| Reported by: | sudar | Owned by: | pento |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Database | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
The wp_get_db_schema function In wp-admin/schema.php is using the same code from wpdb->get_charset_collate() to find out the charset_collate.
This patch replaces the duplicate code with a call to wpdb->get_charset_collate().
This doesn't make any change to the functionality but cleans up the code, so that in future if the logic to find charset_collate is changed, then it needs to be changed in only one place.
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)
In 37524: