Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
216a91e5
Commit
216a91e5
authored
Feb 17, 2017
by
Erick Hitter
Browse files
Don't break pagination by using the wrong number for total items
parent
1e354a2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/wp-cli/class-events.php
View file @
216a91e5
...
...
@@ -194,7 +194,7 @@ class Events extends \WP_CLI_Command {
}
// Include totals for pagination etc
$total_items
=
\
Automattic\WP\Cron_Control\count_events_by_status
(
\
Automattic\WP\Cron_Control\Events_Store
::
STATUS_PENDING
);
$total_items
=
\
Automattic\WP\Cron_Control\count_events_by_status
(
$event_status
);
$total_pages
=
ceil
(
$total_items
/
$limit
);
return
compact
(
'status'
,
'limit'
,
'page'
,
'offset'
,
'items'
,
'total_items'
,
'total_pages'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment