Month num fix

This commit is contained in:
Ben Speakman 2015-04-12 18:29:36 +01:00
parent f62c855128
commit a454a10e69

View file

@ -60,7 +60,7 @@ class WpApi
public function archive($year, $month, $page = null)
{
return $this->_get('posts', ['page' => $page, 'filter' => ['year' => $year, 'month' => $month]]);
return $this->_get('posts', ['page' => $page, 'filter' => ['year' => $year, 'monthnum' => $month]]);
}
public function _get($method, array $query = array())