List filters from David House. fixes #2328

git-svn-id: http://svn.automattic.com/wordpress/trunk@3691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-04-04 02:02:12 +00:00
parent 4079e0c137
commit 9ffdbe2230
3 changed files with 4 additions and 2 deletions

View File

@ -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);
}
?>

View File

@ -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);
}
?>

View File

@ -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();