Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Sensitivity to the incoming type of $parent (int vs string) for taxonomy_get_tree() causes content_taxonomy to break when the taxonomy wrapper is enabled. Not sure if I should file a bug against content_taxonomy also, but it makes sense to fix it in category's wrapper also so that it will be more robust against future bugs.
Patch:
RCS file: /cvs/drupal/contributions/modules/category/wrappers/taxonomy.module.copyme,v
retrieving revision 1.26.2.4
diff -u -r1.26.2.4 taxonomy.module.copyme
--- taxonomy.module.copyme 7 Apr 2007 20:22:14 -0000 1.26.2.4
+++ taxonomy.module.copyme 1 May 2007 01:11:55 -0000
@@ -716,7 +723,7 @@
* to have "depth" and "parents" attributes in addition to its normal ones.
*/
function taxonomy_get_tree($vid, $parent = 0, $depth = -1, $max_depth = NULL) {
- if ($parent === 0) {
+ if ($parent === 0 || $parent === '0') {
$parent = NULL;
}
elseif ($parent === NULL) {