Permalink
Browse files

In z_get_posts_in_zone, pass through our $args

Otherwise the param is useless.

props Paul Kevan
  • Loading branch information...
1 parent 000cb76 commit 8663b46ce03698cda8768b5027715279dc2a9d39 @mjangda mjangda committed Sep 5, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 functions.php
View
@@ -23,13 +23,11 @@ function z_get_zone( $zone ) {
/**
* @param $zone int|string ID or Slug of the zone
+ * @param $args array override default zoninator args
* @return array List of orders post objects
*/
function z_get_posts_in_zone( $zone, $args = array() ) {
- // TODO: return only published posts by default
- // TODO: ability to grab draft as well
-
- return z_get_zoninator()->get_zone_posts( $zone );
+ return z_get_zoninator()->get_zone_posts( $zone, $args );
}
/**

0 comments on commit 8663b46

Please sign in to comment.