Deprecate wpdb::supports_collation() in favor of wpdb::has_cap().

props hakre, pento. fixes #16757.



git-svn-id: http://core.svn.wordpress.org/trunk@21470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-08-08 06:06:57 +00:00
parent 7de126df1f
commit 73c74cf8f7
1 changed files with 3 additions and 0 deletions

View File

@ -1549,10 +1549,13 @@ class wpdb {
* Called when WordPress is generating the table scheme.
*
* @since 2.5.0
* @deprecated 3.5.0
* @deprecated Use wpdb::has_cap( 'collation' )
*
* @return bool True if collation is supported, false if version does not
*/
function supports_collation() {
_deprecated_function( __FUNCTION__, '3.5', 'wpdb::has_cap( \'collation\' )' );
return $this->has_cap( 'collation' );
}