[wp-trac] [WordPress Trac] #35756: Refactor to use function in `wpdb` to find `charset_collate`

WordPress Trac noreply at wordpress.org
Fri Feb 5 15:23:42 UTC 2016


#35756: Refactor to use function in `wpdb` to find `charset_collate`
-------------------------+-----------------------------
 Reporter:  sudar        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Database     |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35756>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list