Make WordPress Core


Ignore:
Timestamp:
08/08/2012 06:06:57 AM (12 years ago)
Author:
nacin
Message:

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

props hakre, pento. fixes #16757.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r21178 r21470  
    15501550     *
    15511551     * @since 2.5.0
     1552     * @deprecated 3.5.0
     1553     * @deprecated Use wpdb::has_cap( 'collation' )
    15521554     *
    15531555     * @return bool True if collation is supported, false if version does not
    15541556     */
    15551557    function supports_collation() {
     1558        _deprecated_function( __FUNCTION__, '3.5', 'wpdb::has_cap( \'collation\' )' );
    15561559        return $this->has_cap( 'collation' );
    15571560    }
Note: See TracChangeset for help on using the changeset viewer.