From a82a0df5f93ed7e8e8da9a150c2670b8d57153e8 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Sun, 7 Dec 2014 05:22:42 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@30768 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/wp-db.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index 58eff99446..6bd76cb0d1 100644 --- a/src/wp-includes/wp-db.php +++ b/src/wp-includes/wp-db.php @@ -2752,10 +2752,14 @@ class wpdb { * Determine if a database supports a particular feature. * * @since 2.7.0 + * @since 4.1.0 Support was added for the 'utf8mb4' feature. + * * @see wpdb::db_version() * - * @param string $db_cap The feature to check for. - * @return bool + * @param string $db_cap The feature to check for. Accepts 'collation', + * 'group_concat', 'subqueries', 'set_charset', + * or 'utf8mb4'. + * @return bool Whether the database feature is supported, false otherwise. */ public function has_cap( $db_cap ) { $version = $this->db_version();