Update phpdoc for get_pages() and fix bugs in previous commit.

git-svn-id: https://develop.svn.wordpress.org/trunk@11252 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-05-10 09:00:18 +00:00
parent 4f8ebb957c
commit 2e5a6f847b
1 changed files with 2 additions and 2 deletions

View File

@ -2177,7 +2177,7 @@ function get_page_uri($page_id) {
*
* The defaults that can be overridden are the following: 'child_of',
* 'sort_order', 'sort_column', 'post_title', 'hierarchical', 'exclude',
* 'include', 'meta_key', 'meta_value', and 'authors'.
* 'include', 'meta_key', 'meta_value','authors', 'number', and 'offset'.
*
* @since 1.5.0
* @uses $wpdb
@ -2194,7 +2194,7 @@ function &get_pages($args = '') {
'exclude' => '', 'include' => '',
'meta_key' => '', 'meta_value' => '',
'authors' => '', 'parent' => -1, 'exclude_tree' => '',
'number' => '', offset => '0'
'number' => '', 'offset' => 0
);
$r = wp_parse_args( $args, $defaults );