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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-05-10 09:00:18 +00:00
parent 9e32b2810a
commit d6b7dc3a8e
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 );