From ef2a54b7b040fa4335a78cce8b2798aca2cca2eb Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Mon, 7 Apr 2014 12:40:28 -0700
Subject: [PATCH] Issue #2228903 by anthonylindsay | alexpott:
 Taxonomy_term_load_children claims to restrict by vid but this is not
 possible.

---
 core/modules/taxonomy/taxonomy.module | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module
index d570cede4f0b..bc53e48e93bb 100644
--- a/core/modules/taxonomy/taxonomy.module
+++ b/core/modules/taxonomy/taxonomy.module
@@ -438,14 +438,12 @@ function taxonomy_term_load_parents_all($tid) {
  *
  * @param $tid
  *   A taxonomy term ID.
- * @param $vid
- *   An optional vocabulary ID to restrict the child search.
  *
  * @return
  *   An array of term objects that are the children of the term $tid, or an
  *   empty array when no children exist.
  */
-function taxonomy_term_load_children($tid, $vid = NULL) {
+function taxonomy_term_load_children($tid) {
   $children = &drupal_static(__FUNCTION__, array());
 
   if ($tid && !isset($children[$tid])) {
-- 
GitLab