From 9ffdbe2230c649ab430c28af8708cd61a11a30ec Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 4 Apr 2006 02:02:12 +0000 Subject: [PATCH] List filters from David House. fixes #2328 git-svn-id: http://svn.automattic.com/wordpress/trunk@3691 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-bookmarks.php | 3 ++- wp-includes/template-functions-category.php | 2 +- wp-includes/template-functions-post.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions-bookmarks.php b/wp-includes/template-functions-bookmarks.php index 0171770eff..3ec336492b 100644 --- a/wp-includes/template-functions-bookmarks.php +++ b/wp-includes/template-functions-bookmarks.php @@ -383,6 +383,7 @@ function get_bookmarks($args = '') { if ($limit != -1) $query .= " LIMIT $limit"; - return $wpdb->get_results($query); + $results = $wpdb->get_results($query); + return apply_filters('get_bookmarks', $results, $r); } ?> \ No newline at end of file diff --git a/wp-includes/template-functions-category.php b/wp-includes/template-functions-category.php index ae9a344dae..d76cf0acc2 100644 --- a/wp-includes/template-functions-category.php +++ b/wp-includes/template-functions-category.php @@ -450,7 +450,7 @@ function &get_categories($args = '') { if ( $child_of || $hierarchical ) $categories = & _get_cat_children($child_of, $categories); - return $categories; + return apply_filters('get_categories', $categories); } ?> diff --git a/wp-includes/template-functions-post.php b/wp-includes/template-functions-post.php index 11a9232519..ae39d3ce61 100644 --- a/wp-includes/template-functions-post.php +++ b/wp-includes/template-functions-post.php @@ -351,6 +351,7 @@ function &get_pages($args = '') { $query .= " ORDER BY " . $sort_column . " " . $sort_order ; $pages = $wpdb->get_results($query); + $pages = apply_filters('get_pages', $pages, $r); if ( empty($pages) ) return array();