Skip to content

Commit

Permalink
Fix $like_value quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed May 7, 2017
1 parent f418d9a commit 161023e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghost-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public function delete_metadata( $delete, $object_id, $meta_key, $meta_value, $d

// Build like value so we only get ghost meta for objects that have something that matches
$like_value = sprintf(
'%%s:%d:%s%%', // Example: %s:7:example%
'%%s:%d:"%s"%%', // Example: %s:7:"example"%
mb_strlen( $meta_key ),
$wpdb->esc_like( $meta_key )
);
Expand Down

0 comments on commit 161023e

Please sign in to comment.