diff options
Diffstat (limited to 'Postman/Postman-Email-Log/PostmanEmailLogView.php')
-rw-r--r-- | Postman/Postman-Email-Log/PostmanEmailLogView.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Postman/Postman-Email-Log/PostmanEmailLogView.php b/Postman/Postman-Email-Log/PostmanEmailLogView.php index 1d8c4b1..2fb3f72 100644 --- a/Postman/Postman-Email-Log/PostmanEmailLogView.php +++ b/Postman/Postman-Email-Log/PostmanEmailLogView.php @@ -260,7 +260,7 @@ class PostmanEmailLogView extends WP_List_Table { /** * First, lets decide how many records per page to show */ - $per_page = 10; + $per_page = isset( $_POST['postman_page_records'] ) ? absint( $_POST['postman_page_records'] ) : 10; /** * REQUIRED. @@ -305,11 +305,9 @@ class PostmanEmailLogView extends WP_List_Table { * be able to use your precisely-queried data immediately. */ $data = array(); - $posts_per_page = absint( $_POST['postman_page_records'] ); $args = array( - 'posts_per_page' => $posts_per_page, - 'offset' => 0, + 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'DESC', 'post_type' => PostmanEmailLogPostType::POSTMAN_CUSTOM_POST_TYPE_SLUG, |