Make WordPress Core


Ignore:
Timestamp:
12/07/2014 05:22:42 AM (10 years ago)
Author:
DrewAPicture
Message:

Improve inline documentation for wpdb::has_cap().

Adds a changelog entry for the addition of the 'utf8mb4' feature, accepted values for $db_cap, and a return description.

Props kpdesign.
See #21212.

File:
1 edited

Legend:

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

    r30753 r30768  
    27532753     *
    27542754     * @since 2.7.0
     2755     * @since 4.1.0 Support was added for the 'utf8mb4' feature.
     2756     *
    27552757     * @see wpdb::db_version()
    27562758     *
    2757      * @param string $db_cap The feature to check for.
    2758      * @return bool
     2759     * @param string $db_cap The feature to check for. Accepts 'collation',
     2760     *                       'group_concat', 'subqueries', 'set_charset',
     2761     *                       or 'utf8mb4'.
     2762     * @return bool Whether the database feature is supported, false otherwise.
    27592763     */
    27602764    public function has_cap( $db_cap ) {
Note: See TracChangeset for help on using the changeset viewer.