List filters from David House. fixes #2328

git-svn-id: https://develop.svn.wordpress.org/trunk@3691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-04-04 02:02:12 +00:00
parent cc11a073cc
commit f677c0a9c9
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();