Apply filteres when returning empty array from get_pages. Props epper. fixes #4712 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@6204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-10-08 22:25:33 +00:00
parent c10999aec9
commit b8febc8501
1 changed files with 1 additions and 1 deletions

View File

@ -1210,7 +1210,7 @@ function &get_pages($args = '') {
$pages = $wpdb->get_results($query);
if ( empty($pages) )
return array();
return apply_filters('get_pages', array(), $r);
// Update cache.
update_page_cache($pages);