Make WordPress Core

Changeset 11528


Ignore:
Timestamp:
06/06/2009 02:44:38 PM (16 years ago)
Author:
ryan
Message:

Use array instead of query string notation. Prop dd32, kamiyeye. fixes #10047

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r11450 r11528  
    10391039    $order = $start ? 'ASC' : 'DESC';
    10401040
    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) );
    10421042}
    10431043
  • trunk/xmlrpc.php

    r11380 r11528  
    605605        }
    606606
    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) );
    608608        $num_pages = count($pages);
    609609
Note: See TracChangeset for help on using the changeset viewer.