Skip to content

Commit

Permalink
WP_Model::all() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonybudd committed Jun 1, 2017
1 parent ccd3613 commit 817433a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WP_Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ public static function all($limit = '999999999')
'posts_per_page' => $limit,
'order' => 'DESC',
'orderby' => 'id',
'post_status' => ['publish'],
];

foreach((new WP_Query($args))->get_posts() as $post){
Expand Down

0 comments on commit 817433a

Please sign in to comment.