Changeset 11528
- Timestamp:
- 06/06/2009 02:44:38 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r11450 r11528 1039 1039 $order = $start ? 'ASC' : 'DESC'; 1040 1040 1041 return get_posts( "numberposts=1&order=$order&orderby=ID&category=$categories");1041 return get_posts( array('numberposts' => 1, 'order' => $order, 'orderby' => 'ID', 'category' => $categories) ); 1042 1042 } 1043 1043 -
trunk/xmlrpc.php
r11380 r11528 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
Note: See TracChangeset
for help on using the changeset viewer.