Opened 9 years ago
Closed 8 years ago
#35756 closed enhancement (fixed)
Refactor to use function in `wpdb` to find `charset_collate`
Reported by: | sudar | Owned by: | pento |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Database | Keywords: | |
Focuses: | Cc: |
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.
In 37524: