[wp-trac] [WordPress Trac] #16757: PHP5-port - Removal of wpdb::supports_collation()

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 5 12:50:23 UTC 2011


#16757: PHP5-port - Removal of wpdb::supports_collation()
-------------------------+-----------------------------
 Reporter:  hakre        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.1
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 In 2.5 {{{wpdb::supports_collation()}}} had been introduced and used in a
 single place inside core, that was wp-admin/includes/schema.php r6199. In
 r8740 the use has been switched over to {{{wpdb::has_cap()}}} which was
 2.7 then.

 As usual there ''might'' be third party code that is still making use of
 this function but since it can be ported backwards compatible to
 {{{wpdb::has_cap( 'collation' )}}} for wp 2.7 and above, and it is
 documented to be used only at one place (see the phpdoc of the function)
 and it was actually used in only one place over the years and already has
 been subject to improvement, I suggest to just remove it.

 Third party code will do a straight fatal error that makes it easy to
 locate where to apply a change:

 {{{$wpdb->supports_collation()}}} -> {{{$wpdb->has_cap( 'collation' )}}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16757>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list