summaryrefslogtreecommitdiff
path: root/Postman/Postman-Email-Log/PostmanEmailLogView.php
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-12-12 22:00:06 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2017-12-12 22:00:06 +0000
commit97a47666f6bf86c7cb9387eec51dae5bc2486010 (patch)
tree40db7ffcd0dab2fdaa6420955c7738ba72079665 /Postman/Postman-Email-Log/PostmanEmailLogView.php
parentd53ff2324d38c6fbdc0669324c3e3fa3ae6c4ca8 (diff)
downloadPost-SMTP-97a47666f6bf86c7cb9387eec51dae5bc2486010.zip
* MAILGUN IS ABOUT TO RELEASE
* Email log - trash all * Email log - records per page * Welcome page * Fix config screen tabs
Diffstat (limited to 'Postman/Postman-Email-Log/PostmanEmailLogView.php')
-rw-r--r--Postman/Postman-Email-Log/PostmanEmailLogView.php6
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,