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:
parent
7de126df1f
commit
73c74cf8f7
|
@ -1549,10 +1549,13 @@ class wpdb {
|
||||||
* Called when WordPress is generating the table scheme.
|
* Called when WordPress is generating the table scheme.
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @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
|
* @return bool True if collation is supported, false if version does not
|
||||||
*/
|
*/
|
||||||
function supports_collation() {
|
function supports_collation() {
|
||||||
|
_deprecated_function( __FUNCTION__, '3.5', 'wpdb::has_cap( \'collation\' )' );
|
||||||
return $this->has_cap( 'collation' );
|
return $this->has_cap( 'collation' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue