Skip to content

Commit

Permalink
Hotfix: use Imagify_DB::esc_like() instead of $wpdb->esc_like() i…
Browse files Browse the repository at this point in the history
…n class `WP_Background_Process`.

TODO: fork this class in next version.
  • Loading branch information
Screenfeed committed Jun 15, 2018
1 parent b4fcb6f commit fdc127f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/classes/class-wp-background-process.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected function is_queue_empty() {
$column = 'meta_key';
}

$key = $wpdb->esc_like( $this->identifier . '_batch_' ) . '%';
$key = Imagify_DB::esc_like( $this->identifier . '_batch_' ) . '%';

$count = $wpdb->get_var( $wpdb->prepare( "
SELECT COUNT(*)
Expand Down Expand Up @@ -270,7 +270,7 @@ protected function get_batch() {
$value_column = 'meta_value';
}

$key = $wpdb->esc_like( $this->identifier . '_batch_' ) . '%';
$key = Imagify_DB::esc_like( $this->identifier . '_batch_' ) . '%';

$query = $wpdb->get_row( $wpdb->prepare( "
SELECT *
Expand Down

0 comments on commit fdc127f

Please sign in to comment.