Ticket #10047: 10047.diff
| File 10047.diff, 978 bytes (added by , 17 years ago) |
|---|
-
wp-includes/link-template.php
1038 1049 1039 1050 $order = $start ? 'ASC' : 'DESC'; 1040 1051 1041 return get_posts( "numberposts=1&order=$order&orderby=ID&category=$categories");1052 return get_posts( array('numberposts' => 1, 'order' => $order, 'orderby' => 'ID', 'category' => $categories) ); 1042 1053 } 1043 1054 1044 1055 /** -
xmlrpc.php
604 604 $page_limit = $num_pages; 605 605 } 606 606 607 $pages = get_posts( "post_type=page&post_status=all&numberposts={$page_limit}");607 $pages = get_posts( array('post_type' => 'page', 'post_status' => 'all', 'numberposts' => $page_limit) ); 608 608 $num_pages = count($pages); 609 609 610 610 // If we have pages, put together their info.