From f447b7caf23c5a5bee473ed046fe75e38cf0d21d Mon Sep 17 00:00:00 2001
From: BENJAMIN MOODY <hireme@benjaminmoody.com>
Date: Sun, 6 Oct 2013 17:41:55 -0400
Subject: [PATCH] Comments for wp-includes/category.php filters

---
 wp-includes/category.php | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/wp-includes/category.php b/wp-includes/category.php
index 1bddce3..44e61e9 100644
--- a/wp-includes/category.php
+++ b/wp-includes/category.php
@@ -39,7 +39,15 @@ function get_all_category_ids() {
 function get_categories( $args = '' ) {
 	$defaults = array( 'taxonomy' => 'category' );
 	$args = wp_parse_args( $args, $defaults );
-
+	
+	/**
+	 * Filter the taxonomy used to retrieve terms when calling get_categories
+	 *
+	 * @since 2.7
+	 *
+	 * @param string $args['taxonomy'] taxonomy to retrieve terms from
+	 * @param array $args array of args being passed to get_terms() function
+	 */
 	$taxonomy = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args );
 
 	// Back compat
@@ -262,7 +270,15 @@ function get_tags( $args = '' ) {
 		$return = array();
 		return $return;
 	}
-
+	
+	/**
+	 * Filter the array of term objects returned for 'post_tag' taxonomy
+	 *
+	 * @since 2.3
+	 *
+	 * @param array $tags Array of 'post_tag' term objects
+	 * @param array $args Array of args passed to get_terms() function
+	 */
 	$tags = apply_filters( 'get_tags', $tags, $args );
 	return $tags;
 }
-- 
1.7.11.1

