Apply filteres when returning empty array from get_pages. Props epper. fixes #4712 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6204 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
64270523e9
commit
15bfa9d2fb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user