--- a/wp/wp-includes/category.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/category.php Fri Sep 05 18:52:52 2025 +0200
@@ -85,8 +85,9 @@
* correspond to a WP_Term object, an associative array, or a numeric array,
* respectively. Default OBJECT.
* @param string $filter Optional. How to sanitize category fields. Default 'raw'.
- * @return object|array|WP_Error|null Category data in type defined by $output parameter.
- * WP_Error if $category is empty, null if it does not exist.
+ * @return WP_Term|array|WP_Error|null Category data in type defined by $output parameter.
+ * Returns a WP_Term object with backwards compatible property aliases filled in.
+ * WP_Error if $category is empty, null if it does not exist.
*/
function get_category( $category, $output = OBJECT, $filter = 'raw' ) {
$category = get_term( $category, 'category', $output, $filter );