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:
parent
4079e0c137
commit
9ffdbe2230
|
@ -383,6 +383,7 @@ function get_bookmarks($args = '') {
|
||||||
if ($limit != -1)
|
if ($limit != -1)
|
||||||
$query .= " LIMIT $limit";
|
$query .= " LIMIT $limit";
|
||||||
|
|
||||||
return $wpdb->get_results($query);
|
$results = $wpdb->get_results($query);
|
||||||
|
return apply_filters('get_bookmarks', $results, $r);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -450,7 +450,7 @@ function &get_categories($args = '') {
|
||||||
if ( $child_of || $hierarchical )
|
if ( $child_of || $hierarchical )
|
||||||
$categories = & _get_cat_children($child_of, $categories);
|
$categories = & _get_cat_children($child_of, $categories);
|
||||||
|
|
||||||
return $categories;
|
return apply_filters('get_categories', $categories);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -351,6 +351,7 @@ function &get_pages($args = '') {
|
||||||
$query .= " ORDER BY " . $sort_column . " " . $sort_order ;
|
$query .= " ORDER BY " . $sort_column . " " . $sort_order ;
|
||||||
|
|
||||||
$pages = $wpdb->get_results($query);
|
$pages = $wpdb->get_results($query);
|
||||||
|
$pages = apply_filters('get_pages', $pages, $r);
|
||||||
|
|
||||||
if ( empty($pages) )
|
if ( empty($pages) )
|
||||||
return array();
|
return array();
|
||||||
|
|
Loading…
Reference in New Issue