From a454a10e696d8ab3d79158684adcae4852031eeb Mon Sep 17 00:00:00 2001 From: Ben Speakman Date: Sun, 12 Apr 2015 18:29:36 +0100 Subject: [PATCH] Month num fix --- src/Cyberduck/LaravelWpApi/WpApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cyberduck/LaravelWpApi/WpApi.php b/src/Cyberduck/LaravelWpApi/WpApi.php index a0901b3..3fce721 100755 --- a/src/Cyberduck/LaravelWpApi/WpApi.php +++ b/src/Cyberduck/LaravelWpApi/WpApi.php @@ -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())