Commit 52da5843 authored by David Binovec's avatar David Binovec
Browse files

Removing unused global $wpdb variable

The `$wpdb` variable is not being used in \Automattic\WP\Cron_Control\CLI\Events::get_events() methods and thus is not necessary to be made accessible in there.
parent e4b0f8f7
......@@ -149,8 +149,6 @@ class Events extends \WP_CLI_Command {
* Retrieve list of events, and related data, for a given request
*/
private function get_events( $args, $assoc_args ) {
global $wpdb;
// Accept a status argument, with a default
$status = 'pending';
if ( isset( $assoc_args['status'] ) ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment