diff --git a/wp-includes/post.php b/wp-includes/post.php index 74e273f356..fede7c7ae3 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1203,7 +1203,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);