Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
79137490
Commit
79137490
authored
Feb 24, 2017
by
Erick Hitter
Browse files
Update count-by-status query to leverage index
parent
8f9b27dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/class-events-store.php
View file @
79137490
...
...
@@ -578,7 +578,7 @@ class Events_Store extends Singleton {
return
false
;
}
return
(
int
)
$wpdb
->
get_var
(
$wpdb
->
prepare
(
"SELECT COUNT(
action
) FROM
{
$this
->
get_table_name
()
}
WHERE status = %s"
,
$status
)
);
return
(
int
)
$wpdb
->
get_var
(
$wpdb
->
prepare
(
"SELECT COUNT(
ID
) FROM
{
$this
->
get_table_name
()
}
WHERE status = %s"
,
$status
)
);
}
}
...
...
Write
Preview
Supports
Markdown
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