diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-27 11:19:48 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-27 11:19:48 +0000 |
commit | 5447f131269541ea942ae9239c95b4e1188fb57c (patch) | |
tree | 11bbdce67a32ce816b14425dd95244786a29b801 /wp-includes/wpmu-functions.php | |
parent | 600b71019494e1c29898a620e58c0d2602f37b74 (diff) | |
download | wordpress-mu-5447f131269541ea942ae9239c95b4e1188fb57c.tar.gz wordpress-mu-5447f131269541ea942ae9239c95b4e1188fb57c.tar.xz wordpress-mu-5447f131269541ea942ae9239c95b4e1188fb57c.zip |
WP Merge to rev 4534
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@811 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r-- | wp-includes/wpmu-functions.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index e4040c5..ec9746c 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1387,19 +1387,4 @@ function get_current_site() { return $current_site; } -function cat_is_ancestor_of($cat1, $cat2) { - if ( is_int($cat1) ) - $cat1 = & get_category($cat1); - if ( is_int($cat2) ) - $cat2 = & get_category($cat2); - - if ( !$cat1->cat_ID || !$cat2->category_parent ) - return false; - - if ( $cat2->category_parent == $cat1->cat_ID ) - return true; - - return cat_is_ancestor_of($cat1, get_category($cat2->parent_category)); -} - ?> |